CN100405360C - 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 PDF

Info

Publication number
CN100405360C
CN100405360C CNB2006100521057A CN200610052105A CN100405360C CN 100405360 C CN100405360 C CN 100405360C CN B2006100521057 A CNB2006100521057 A CN B2006100521057A CN 200610052105 A CN200610052105 A CN 200610052105A CN 100405360 C CN100405360 C CN 100405360C
Authority
CN
China
Prior art keywords
bitmap
pattern
mobile device
embedded mobile
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.)
Expired - Fee Related
Application number
CNB2006100521057A
Other languages
Chinese (zh)
Other versions
CN1866244A (en
Inventor
陈纯
卜佳俊
何意
姜波
杨建旭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang University ZJU
Original Assignee
Zhejiang University ZJU
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Zhejiang University ZJU filed Critical Zhejiang University ZJU
Priority to CNB2006100521057A priority Critical patent/CN100405360C/en
Publication of CN1866244A publication Critical patent/CN1866244A/en
Application granted granted Critical
Publication of CN100405360C publication Critical patent/CN100405360C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention discloses a self-adaptive display method for graphical images in cooperative design in a universal environment. In the process of cooperative design, according to the difference of the size and the distinguishability of a screen of communication terminal equipment, documents with different sizes are arranged and defined; through the calculation of the displayed relative positions and the sizes of graphical images and the conversion of the display data of the images, the effect of clear display is achieved. The method realizes the self-adaptive display of graphical images in distributed pattern cooperative design in a universal environment, which provides possibility for the cooperative design of desktop computer and mobile embedded terminals.

Description

The adaptive display method of graph image in the collaborative design under the general environment
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 device adds the collaborative editing design effort has become possibility.Yet its display screen is less usually for embedded mobile device, and pattern can't be presented at screen in high precision mode in proportion.And for embedded mobile device, 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 embedded mobile device 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 embedded mobile device.
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 embedded mobile device document, and H2 is the height of embedded mobile device document;
Width1 is the wide of desktop computer pattern, and height1 is the height of desktop computer pattern;
Width2 is the wide of embedded mobile device pattern, and height2 is the height of embedded mobile device 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 embedded mobile device pattern is topleft2 (x ', y ');
3) from the embedded mobile device 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 embedded mobile device 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 embedded mobile device pattern, and height2 is the height of embedded mobile device 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 embedded mobile device 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) embedded mobile device 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) embedded mobile device is read in bitmap and is shown 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 embedded mobile device screen, and H2 is the height of embedded mobile device screen;
As: the document size in the desktop systems is: 2000*4000,
The size of embedded mobile device document is: 100*200;
2) the pattern self-adaptation of handling from the desktop computer to the embedded mobile device 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 embedded mobile device pattern:
Size: width2=(width1*W2)/W1, height2=(height1*H2)/H1
Wherein width2 is the wide of embedded mobile device pattern, and height2 is the height of embedded mobile device 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 embedded mobile device pattern;
Then: the size of embedded mobile device 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 embedded mobile device to the desktop computer shows, obtain the big or small width2*height2 of the pattern in the embedded mobile device 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 embedded mobile device 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 is 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) embedded mobile device 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) embedded mobile device is read in bitmap and is shown 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 embedded mobile device document, and H2 is the height of embedded mobile device document;
Width1 is the wide of desktop computer pattern, and height1 is the height of desktop computer pattern;
Width2 is the wide of embedded mobile device pattern, and height2 is the height of embedded mobile device 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 embedded mobile device pattern is topleft2 (x ', y ');
3) from the embedded mobile device 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 embedded mobile device document, and H2 is the height of embedded mobile device document;
Width1 is the wide of desktop computer pattern, and height1 is the height of desktop computer pattern;
Width2 is the wide of embedded mobile device pattern, and height2 is the height of embedded mobile device 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 embedded mobile device 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) embedded mobile device 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) embedded mobile device is read in bitmap and is shown from the bmp file.
CNB2006100521057A 2006-06-23 2006-06-23 Adaptive display method for graphic image in cooperative design in pervasive environment Expired - Fee Related CN100405360C (en)

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 CN1866244A (en) 2006-11-22
CN100405360C true 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)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
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
CN101984430A (en) * 2010-11-04 2011-03-09 中兴通讯股份有限公司 Multi-user collaborative graphic editing method and system for mobile terminal
CN102123259B (en) * 2010-12-28 2012-09-26 四川长虹电器股份有限公司 Method for displaying extra-large-resolution pictures on television
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
KR101207537B1 (en) * 2012-03-30 2012-12-05 주식회사 빅솔론 The pos system using portable computer
CN106610920A (en) * 2015-10-26 2017-05-03 北京国双科技有限公司 Method and device for displaying data chart
JP2018116559A (en) * 2017-01-19 2018-07-26 富士通株式会社 Terminal device, display position control program, and display position control method

Citations (6)

* Cited by examiner, † Cited by third party
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
US6675190B1 (en) * 1998-10-08 2004-01-06 Alcatel Method for cooperative multitasking in a communications network, and a network element for carrying out the method
CN1645333A (en) * 2005-01-10 2005-07-27 浙江大学 Predicting method for system lock in pattern coordinate design
CN1648859A (en) * 2005-01-27 2005-08-03 浙江大学 Method for maintaining semantics consistency in figure synergistic design
CN1741022A (en) * 2005-09-16 2006-03-01 浙江大学 Complex locking method in pattern cooperative design
CN1758273A (en) * 2005-11-03 2006-04-12 浙江大学 Predicted method of range which user attention to in distributed pattern cooperation design

Patent Citations (6)

* Cited by examiner, † Cited by third party
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
US6675190B1 (en) * 1998-10-08 2004-01-06 Alcatel Method for cooperative multitasking in a communications network, and a network element for carrying out the method
CN1645333A (en) * 2005-01-10 2005-07-27 浙江大学 Predicting method for system lock in pattern coordinate design
CN1648859A (en) * 2005-01-27 2005-08-03 浙江大学 Method for maintaining semantics consistency in figure synergistic design
CN1741022A (en) * 2005-09-16 2006-03-01 浙江大学 Complex locking method in pattern cooperative design
CN1758273A (en) * 2005-11-03 2006-04-12 浙江大学 Predicted method of range which user attention to in distributed pattern cooperation design

Also Published As

Publication number Publication date
CN1866244A (en) 2006-11-22

Similar Documents

Publication Publication Date Title
CN100405360C (en) Adaptive display method for graphic image in cooperative design in pervasive environment
KR100971498B1 (en) Method and apparatus for 2d image transformation with various artistic effect
CN104238863B (en) Circle based on Android selects Zoom method and system
CN101877139A (en) Method and system for realizing spacial hot spots in three-dimensional video panorama
CN106502506A (en) The mask method of document, system and electronic equipment in webpage
CN105160951A (en) Mobile-device-based white board teaching method and system
CN100412902C (en) Method for extracting graph image data information
CN102622395A (en) Method, server and client for assisting in accessing to webpage by application virtualization
CN101458711A (en) Image describing and transforming method and system
CN113536757A (en) Electronic contract generation and signing method, device and system based on parameter template
Lipman Mobile 3D visualization for steel structures
CN103902294A (en) Browser image display method and terminal
CN105988760A (en) Printing-based interactive display method and system
KR102159326B1 (en) System and Device for learning creator's style
CN108074281B (en) Pyramid panorama model generation method and device, storage medium and electronic device
CN104092958B (en) Vision signal mask method, system and device
CN115544289A (en) Web end processing method of large PCB vector diagram
CN114168060A (en) Electronic whiteboard rendering method, device, equipment and storage medium
CN1314639A (en) Random labelling method for computer screen
CN103294788A (en) Universal background processing method and system for websites
CN101017660A (en) A method for displaying the object on the multiple display devices under the window operation environment
CN101448121A (en) Dynamic generation method of diagram video
CN107183927A (en) A kind of shared conference table
KR102240410B1 (en) Device for learning and method thereof
KR102131190B1 (en) System for providing a 3d model in on-line

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

Granted publication date: 20080723

Termination date: 20160623

CF01 Termination of patent right due to non-payment of annual fee