CN1866244A - Adaptive display method for graphic image in cooperative design in pervasive environment - Google Patents
Adaptive display method for graphic image in cooperative design in pervasive environment Download PDFInfo
- Publication number
- CN1866244A CN1866244A CN 200610052105 CN200610052105A CN1866244A CN 1866244 A CN1866244 A CN 1866244A CN 200610052105 CN200610052105 CN 200610052105 CN 200610052105 A CN200610052105 A CN 200610052105A CN 1866244 A CN1866244 A CN 1866244A
- Authority
- CN
- China
- Prior art keywords
- bitmap
- pattern
- terminal
- built
- document
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Abstract
The disclosed adaptive image display method in cooperative design comprises: according to size and resolution of communication terminal display, setting files with different sizes, calculating image display position and size, and converting display data for clear display. This invention is benefit to the cooperative design with desk PC and mobile embedded terminal in universal place.
Description
Technical field
The present invention relates to distributed pattern collaborative design technical field under the general environment, particularly relate under a kind of general environment the adaptive display method of graph image in the collaborative design.
Background technology
Along with computer technology, Networks and Communications technology, rapid development of multimedia, the emphasis of computer utility begins to exchange mutually and support the direction of people's collaborative work to develop to being convenient for people to from finding the solution problem and information processing.As a kind of new computation schema, computer supported cooperative work (Computer SupportedCooperative Work, CSCW) start from the eighties, become a plurality of subjects such as integrated computer technology, psychology, ergonomics, cognitive science, sociology so far in the new crossing research field of one.
The real-time collaborative pattern design system is the important branch that CSCW uses, and its target is to support a plurality of users to finish the process of CAD design jointly under the Internet network environment.Collaborative pattern edit package is drawn together object-based graphics edition and based on the picture editting of bitmap.In object-based graphics edition process, each Drawing Object is described with some simple parameters, so the operation in this class collaborative editing also can the operation parameter mode be described, and cooperation interaction has the less feature of data volume.Use etc. at present the expansion of the application of the collaborative design system that relates to big data, the Network Transmission under the real-time collaborative pattern has been proposed more requirements and brought a series of new problems along with bitmap images editor and 3-D view design.
Along with the rise of general fit calculation and mobile computing, embedded mobile terminal adds the collaborative editing design effort has become possibility.Yet its display screen is less usually for built-in terminal, and pattern can't be presented at screen in high precision mode in proportion.And for built-in terminal, the display screen of desktop computer is excessive, thereby the size and the position coordinates of the adaptive adjustment pattern of needs, what pattern is dwindled according to a certain percentage or amplify is presented on the corresponding screen, make each terminal not be subjected to the influence of device screen attribute, realize seamless collaborative design, and because the ability that built-in terminal is handled data is lower than desktop computer, therefore the data layout that needs adaptive converted image, show different view data, the processing power of the whole distributed system of coordinated balance and processing speed at desktop computer with built-in terminal.
Summary of the invention
The object of the present invention is to provide a kind of adaptive display method that is used for collaborative design graph image under the general environment.
The technical scheme that the present invention solves its technical matters employing is as follows:
1) document properties of terminal device obtains the document size of terminal device from the log-on message of system;
2) from the desktop computer to the embedded mobile device, the self-adaptation of pattern is dwindled demonstration, the calculating of size and position:
Show size:
width2=(width1*W2)/W1,height2=(height1*H2)/H1
Display position:
x’=(x*W2)/W1,y’=(y*H2)/H1
Wherein:
W1 is the wide of desktop systems document, and H1 is the height of desktop systems document;
W2 is the wide of built-in terminal document, and H2 is the height of built-in terminal document;
Width1 is the wide of desktop computer pattern, and height1 is the height of desktop computer pattern;
Width2 is the wide of built-in terminal pattern, and height2 is the height of built-in terminal pattern;
X is a horizontal ordinate, and x ' is a horizontal ordinate, and y is an ordinate, and y ' is an ordinate;
The upper left corner coordinate position of desktop systems pattern be topleft1 (x, y);
The upper left corner coordinate position of built-in terminal pattern is topleft2 (x ', y ');
3) from the embedded mobile terminal to the desktop computer, the self-adaptation of pattern is amplified demonstration, the calculating of size and position:
Show size:
width1=(width2*W1)/W2,height1=(height2*H1)/H2
Display position:
x=(x’*W1)/W2,y=(y’*H1)/H2
Wherein:
W1 is the wide of desktop systems document, and H1 is the height of desktop systems document;
W2 is the wide of built-in terminal document, and H2 is the height of built-in terminal document;
Width1 is the wide of desktop computer pattern, and height1 is the height of desktop computer pattern;
Width2 is the wide of built-in terminal pattern, and height2 is the height of built-in terminal pattern;
X is a horizontal ordinate, and x ' is a horizontal ordinate, and y is an ordinate, and y ' is an ordinate;
The upper left corner coordinate position of desktop systems pattern be topleft1 (x, y);
The upper left corner coordinate position of built-in terminal pattern is topleft2 (x ', y ');
4) from the desktop computer to the embedded mobile device, the conversion of the self-adaptation of picture format:
A) display format of desktop systems epigraph is a polar plot, reads corresponding message bit pattern according to the numeral index of polar plot from database;
B) according to data bitmap definition bitmap variable CBitmap;
C) definition bitmap file head BITMAPFILEHEADER, and, determine the type of bitmap file to the variable assignments in the structure, size and data bitmap are with respect to the reference position of bitmap;
D) definition message bit pattern head BITMAPINFOHEADER, give the variable assignments in the structure, determine the width of bitmap, highly, the number of colours used of the rank of target device, required figure place, bitmap compression type, bitmap size, bitmap horizontal resolution, vertical resolution, the bitmap of each pixel;
E) definition message bit pattern BITMAPINFO gives the variable assignments in the structure, comprises message bit pattern head and color table;
F) by int GetDIBits (
HDC?hdc, //handle?to?device?context
HBITMAP?hbmp, //handle?to?bitmap
UINT?uStartScan, //first?scan?line?to?set?in?destination?bitmap
UINT?cScanLines, //number?of?scan?lines?to?copy
LPVOID?lpvBits, //address?of?array?for?bitmap?bits
LPBITMAPINFO?lpbi,?//address?of?structure?with?bitmap?data
UINT?uUsage);
Obtain bitmap image data, and send to receiving end by network;
G) built-in terminal receives byte data, is reorganized into bitmap head BITMAPFILEHEADER, and message bit pattern BITMAPINFO and data bitmap write the bitmap file that file generates the bmp form;
H) built-in terminal reads in bitmap and shows from the bmp file.
The present invention compares with background technology, and the useful effect that has is:
The present invention is used for the method that pattern collaborative design graph image self-adaptation shows under the general environment, its major function is according to the size of collaborative design terminal display, the difference of resolution, the size of system documentation is set, position, size and form that the display format adjustment of the size by document in the concrete relatively equipment of computing system pattern, coordinate position, image shows, thus the effect that shows improved.
Embodiment
In implementing the pattern collaborative design, the embodiment that the self-adaptation of realization pattern shows is as follows:
1) from the log-on message of system, obtain the document size W1*H1 of terminal device respectively, W2*H2, wherein W1 is the wide of desktop computer screen, and H1 is the height of desktop computer screen, and W2 is the wide of built-in terminal screen, and H2 is the height of built-in terminal screen;
As: the document size in the desktop systems is: 2000*4000,
The size of built-in terminal document is: 100*200;
2) the pattern self-adaptation of handling from the desktop computer to the built-in terminal shows, obtain the big or small width1*height1 of pattern in the desktop systems earlier, coordinate position topleft1 (the x in the pattern upper left corner, y), wherein width1 represents the wide of pattern, height1 represents the height of pattern, and x is a horizontal ordinate, and y is an ordinate;
As: the size of pattern is in the desktop systems: 300*500;
Upper left corner coordinate position is: topleft1 (200,400);
3) size and the position of calculating built-in terminal pattern:
Size: width2=(width1*W2)/W1, height2=(height1*H2)/H1
Wherein width2 is the wide of built-in terminal pattern, and height2 is the height of built-in terminal pattern;
Position: x '=(x*W2)/W1, y '=(y*H2)/H1
Wherein x ' is a horizontal ordinate, and y ' is an ordinate, and topleft2 (x ', y ') be the upper left corner coordinate of built-in terminal pattern;
Then: the size of built-in terminal pattern is:
Wide: (300*100)/2000=15, height: (500*200)/4000=25
The position is:
x’=(200*100)/2000=10,y’=(400*200)/4000=20
4) the pattern self-adaptation of handling from the built-in terminal to the desktop computer shows, obtain the big or small width2*height2 of the pattern in the built-in terminal system earlier, the coordinate position topleft2 in the upper left corner of pattern (x ', y '), wherein width2 represents the wide of pattern, height2 represents the height of pattern, and x ' is a horizontal ordinate, and y ' is an ordinate;
As: the size of built-in terminal pattern is: 50*60;
Upper left corner coordinate position is: 30*40
5) size and the position of pattern in the calculating desktop systems:
Size: width1=(width2*W1)/W2, height1=(height2*H1)/H2 wherein width1 are the wide of pattern in the desktop systems, and height1 is the height of pattern in the desktop systems;
Position: x=(x ' * W1)/W2, y=(y ' * H1)/H2
Wherein x is a horizontal ordinate, and y is an ordinate, and (x y) is the coordinate in the pattern upper left corner in the desktop systems to topleft.
Then: the size of pattern is in the desktop systems:
Wide: (50*2000)/100=1000, height: (60*4000)/200=1200;
Upper left corner coordinate position is:
x’=(30*2000)/100=600,y’=(40*4000)/200=800;
6) from the desktop computer to the embedded mobile device, the conversion of the self-adaptation of picture format:
A) display format of desktop systems epigraph is a polar plot, reads corresponding message bit pattern according to the numeral index of polar plot from database;
B) according to data bitmap definition bitmap variable CBitmap;
C) definition bitmap file head BITMAPFILEHEADER, and, determine the type of bitmap file to the variable assignments in the structure, size and data bitmap are with respect to the reference position of bitmap;
D) definition message bit pattern head BITMAPINFOHEADER, give the variable assignments in the structure, determine the width of bitmap, highly, the number of colours used of the rank of target device, required figure place, bitmap compression type, bitmap size, bitmap horizontal resolution, vertical resolution, the bitmap of each pixel;
E) definition message bit pattern BITMAPINFO gives the variable assignments in the structure, comprises message bit pattern head and color table;
F) by int GetDIBits (
HDC?hdc, //handle?to?device?context
HBITMAP?hbmp, //handle?to?bitmap
UINT?uStartScan, //first?scan?line?to?set?in?destination?bitmap
UINT?cScanLines, //number?of?scan?lines?to?copy
LPVOID?lpvBits, //address?of?array?for?bitmap?bits
LPBITMAPINFO?lpbi,//address?of?structure?with?bitmap?data
UINT?uUsage);
Obtain bitmap image data, and send to receiving end by network.
G) built-in terminal receives byte data, is reorganized into bitmap head BITMAPFILEHEADER, and message bit pattern BITMAPINFO and data bitmap write the bitmap file that file generates the bmp form.
H) built-in terminal reads in bitmap and shows from the bmp file.
Claims (1)
1. the adaptive display method of graph image in the collaborative design under the general environment is characterized in that:
1) document properties of terminal device obtains the document size of terminal device from the log-on message of system;
2) from the desktop computer to the embedded mobile device, the self-adaptation of pattern is dwindled demonstration, the calculating of size and position:
Show size:
width2=(width1*W2)/W1,height2=(height1*H2)/H1
Display position:
x’=(x*W2)/W1,y’=(y*H2)/H1
Wherein:
W1 is the wide of desktop systems document, and H1 is the height of desktop systems document;
W2 is the wide of built-in terminal document, and H2 is the height of built-in terminal document;
Width1 is the wide of desktop computer pattern, and height1 is the height of desktop computer pattern;
Width2 is the wide of built-in terminal pattern, and height2 is the height of built-in terminal pattern;
X is a horizontal ordinate, and x ' is a horizontal ordinate, and y is an ordinate, and y ' is an ordinate;
The upper left corner coordinate position of desktop systems pattern be topleft1 (x, y);
The upper left corner coordinate position of built-in terminal pattern is topleft2 (x ', y ');
3) from the embedded mobile terminal to the desktop computer, the self-adaptation of pattern is amplified demonstration, the calculating of size and position:
Show size:
width1=(width2*W1)/W2,height1=(height2*H1)/H2
Display position:
x=(x’*W1)/W2,y=(y’*H1)/H2
Wherein:
W1 is the wide of desktop systems document, and H1 is the height of desktop systems document;
W2 is the wide of built-in terminal document, and H2 is the height of built-in terminal document;
Width1 is the wide of desktop computer pattern, and height1 is the height of desktop computer pattern;
Width2 is the wide of built-in terminal pattern, and height2 is the height of built-in terminal pattern;
X is a horizontal ordinate, and x ' is a horizontal ordinate, and y is an ordinate, and y ' is an ordinate;
The upper left corner coordinate position of desktop systems pattern be topleft1 (x, y);
The upper left corner coordinate position of built-in terminal pattern is topleft2 (x ', y ');
4) from the desktop computer to the embedded mobile device, the conversion of the self-adaptation of picture format:
A) display format of desktop systems epigraph is a polar plot, reads corresponding message bit pattern according to the numeral index of polar plot from database;
B) according to data bitmap definition bitmap variable CBitmap;
C) definition bitmap file head BITMAPFILEHEADER, and, determine the type of bitmap file to the variable assignments in the structure, size and data bitmap are with respect to the reference position of bitmap;
D) definition message bit pattern head BITMAPINFOHEADER, give the variable assignments in the structure, determine the width of bitmap, highly, the number of colours used of the rank of target device, required figure place, bitmap compression type, bitmap size, bitmap horizontal resolution, vertical resolution, the bitmap of each pixel;
E) definition message bit pattern BITMAPINFO gives the variable assignments in the structure, comprises message bit pattern head and color table;
F) by int GetDIBits (
HDC?hdc, //handle?to?device?context
HBITMAP?hbmp, //handle?to?bitmap
UINT?uStartScan, //first?scan?line?to?set?in?destination?bitmap
UINT?cScanLines, //number?of?scan?lines?to?copy
LPVOID?lpvBits, //address?of?array?for?bitmap?bits
LPBITMAPINFO?lpbi,//address?of?structure?with?bitmap?data
UINT uUsage); Obtain bitmap image data, and send to receiving end by network;
G) built-in terminal receives byte data, is reorganized into bitmap head BITMAPFILEHEADER, and message bit pattern BITMAPINFO and data bitmap write the bitmap file that file generates the bmp form;
H) built-in terminal reads in bitmap and shows from the bmp file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2006100521057A CN100405360C (en) | 2006-06-23 | 2006-06-23 | Adaptive display method for graphic image in cooperative design in pervasive environment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2006100521057A CN100405360C (en) | 2006-06-23 | 2006-06-23 | Adaptive display method for graphic image in cooperative design in pervasive environment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1866244A true CN1866244A (en) | 2006-11-22 |
CN100405360C CN100405360C (en) | 2008-07-23 |
Family
ID=37425266
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2006100521057A Expired - Fee Related CN100405360C (en) | 2006-06-23 | 2006-06-23 | Adaptive display method for graphic image in cooperative design in pervasive environment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100405360C (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2008086706A1 (en) * | 2006-12-28 | 2008-07-24 | Lei Zhong | Stereo image watching system |
CN101635029A (en) * | 2009-06-01 | 2010-01-27 | 北京中星微电子有限公司 | Face recognition method and mobile terminal |
CN102123259A (en) * | 2010-12-28 | 2011-07-13 | 四川长虹电器股份有限公司 | Method for displaying extra-large-resolution pictures on television |
CN102215404A (en) * | 2011-05-20 | 2011-10-12 | 恒通高科股份有限公司 | Decoding method and system of videos inside embedded system |
CN102298495A (en) * | 2011-06-27 | 2011-12-28 | 上海北大方正科技电脑系统有限公司 | Method for enabling android software to adapt to different screen densities |
CN101540041B (en) * | 2008-03-21 | 2012-06-27 | 中国科学院计算技术研究所 | Adaptation method for browsing scanned documents |
CN101453511B (en) * | 2007-12-07 | 2012-08-01 | 北京闻言科技有限公司 | Method for mobile phone platform UI interface adaptation |
CN103366473A (en) * | 2012-03-30 | 2013-10-23 | 株式会社毕索龙 | POS system using portable computer |
CN106022716A (en) * | 2010-11-04 | 2016-10-12 | 中兴通讯股份有限公司 | Method and system for multi-user cooperative graph editing of mobile terminal |
CN106610920A (en) * | 2015-10-26 | 2017-05-03 | 北京国双科技有限公司 | Method and device for displaying data chart |
EP3573017A4 (en) * | 2017-01-19 | 2020-11-04 | Fujitsu Client Computing Limited | Terminal device, display position control program, and display position control method |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5654900A (en) * | 1991-01-10 | 1997-08-05 | Ratner; Leah | Method of and apparatus for optimization of structures |
DE19846274A1 (en) * | 1998-10-08 | 2000-04-20 | Alcatel Sa | Method for carrying out cooperative multitasking in a communications network and network element therefor |
CN1300691C (en) * | 2005-01-10 | 2007-02-14 | 浙江大学 | Predicting method for system lock in pattern coordinate design |
CN1300683C (en) * | 2005-01-27 | 2007-02-14 | 浙江大学 | Method for maintaining semantics consistency in figure synergistic design |
CN100346341C (en) * | 2005-09-16 | 2007-10-31 | 浙江大学 | Complex locking method in pattern cooperative design |
CN100561513C (en) * | 2005-11-03 | 2009-11-18 | 浙江大学 | The Forecasting Methodology of user's region-of-interest in the distributed pattern collaborative design |
-
2006
- 2006-06-23 CN CNB2006100521057A patent/CN100405360C/en not_active Expired - Fee Related
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2008086706A1 (en) * | 2006-12-28 | 2008-07-24 | Lei Zhong | Stereo image watching system |
CN101453511B (en) * | 2007-12-07 | 2012-08-01 | 北京闻言科技有限公司 | Method for mobile phone platform UI interface adaptation |
CN101540041B (en) * | 2008-03-21 | 2012-06-27 | 中国科学院计算技术研究所 | Adaptation method for browsing scanned documents |
CN101635029A (en) * | 2009-06-01 | 2010-01-27 | 北京中星微电子有限公司 | Face recognition method and mobile terminal |
CN106022716A (en) * | 2010-11-04 | 2016-10-12 | 中兴通讯股份有限公司 | Method and system for multi-user cooperative graph editing of mobile terminal |
CN102123259A (en) * | 2010-12-28 | 2011-07-13 | 四川长虹电器股份有限公司 | Method for displaying extra-large-resolution pictures on television |
CN102215404A (en) * | 2011-05-20 | 2011-10-12 | 恒通高科股份有限公司 | Decoding method and system of videos inside embedded system |
CN102215404B (en) * | 2011-05-20 | 2013-07-10 | 昌信科技有限公司 | Decoding method and system of videos inside embedded system |
CN102298495A (en) * | 2011-06-27 | 2011-12-28 | 上海北大方正科技电脑系统有限公司 | Method for enabling android software to adapt to different screen densities |
CN103366473A (en) * | 2012-03-30 | 2013-10-23 | 株式会社毕索龙 | POS system using portable computer |
CN106610920A (en) * | 2015-10-26 | 2017-05-03 | 北京国双科技有限公司 | Method and device for displaying data chart |
EP3573017A4 (en) * | 2017-01-19 | 2020-11-04 | Fujitsu Client Computing Limited | Terminal device, display position control program, and display position control method |
Also Published As
Publication number | Publication date |
---|---|
CN100405360C (en) | 2008-07-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1866244A (en) | Adaptive display method for graphic image in cooperative design in pervasive environment | |
CN1148680C (en) | Depth management of user's interface through observation | |
CN1285045C (en) | Electronic page hand-writing marginalia and display method | |
CN1148681C (en) | Administative user's interface through branched separation | |
CN1308895C (en) | Systems and methods for generating visual representations of graphical data and digital document processing | |
CN1613105A (en) | Presenting html content on a small screen terminal display | |
CN1691068A (en) | Apparatus and method for reconstructing three-dimensional graphics data | |
CN1893564A (en) | Image special effect device, graphic processor and recording medium | |
CN1495672A (en) | Image editing device and method | |
CN1928871A (en) | Big capacity image fast browsing system | |
CN1121018C (en) | Data texturing method and apparatus | |
CN1744684A (en) | Video display control apparatus and video display control method | |
CN101055645A (en) | A shade implementation method and device | |
CN1575765A (en) | X-ray ct imaging method and x-ray ct system | |
CN1560797A (en) | 3-D image processing mechanism for reducing Z buffer zone flow rate | |
CN1940921A (en) | Image searching method and device | |
CN1158873C (en) | Method and apparatus for image processing | |
CN101042691A (en) | System, apparatus, method, and computer program product for processing an integer transform | |
CN1100366A (en) | Character generating method and apparatus | |
CN1317884C (en) | A method for realizing integral multiple amplification of image | |
CN1556498A (en) | Non identification type hand wrighting input method and its device | |
CN1670766A (en) | Image zooming method | |
CN101059952A (en) | An image rotation processing method, device and multi-media processor | |
CN1815357A (en) | Off-axis-mountel projector ball-screen projection non-linear distortion correction method | |
CN1314639A (en) | Random labelling method for computer screen |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20080723 Termination date: 20160623 |