CN102968807B - image automatic generation method and system - Google Patents

image automatic generation method and system Download PDF

Info

Publication number
CN102968807B
CN102968807B CN201210422439.4A CN201210422439A CN102968807B CN 102968807 B CN102968807 B CN 102968807B CN 201210422439 A CN201210422439 A CN 201210422439A CN 102968807 B CN102968807 B CN 102968807B
Authority
CN
China
Prior art keywords
request msg
data
drafting
analysis result
drafting request
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.)
Active
Application number
CN201210422439.4A
Other languages
Chinese (zh)
Other versions
CN102968807A (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.)
Vtron Technologies Ltd
Original Assignee
Vtron Technologies Ltd
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 Vtron Technologies Ltd filed Critical Vtron Technologies Ltd
Priority to CN201210422439.4A priority Critical patent/CN102968807B/en
Publication of CN102968807A publication Critical patent/CN102968807A/en
Application granted granted Critical
Publication of CN102968807B publication Critical patent/CN102968807B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a kind of image automatic generation method and system, its method comprises step: waiting receive client send predetermined format drafting request msg after, to described drafting request msg carry out parsings acquisition analysis result; According to described analysis result resource allocation data; Drawing engine draws picture is used to obtain image data according to described analysis result and described resource data; Described image data is returned described client; Waiting when receiving the receipt notification data of predetermined format that described client sends, the drafting request msg state to be entered such as to enter.The present invention is simple to operate, be easy to realize, and by the restriction of the programming platform used in user's client operating system, application program.

Description

Image automatic generation method and system
Technical field
The present invention relates to technical field of image processing, particularly relate to a kind of image automatic generation method and system.
Background technology
Some drawing engines, the main task as GDI+ (GraphicsDeviceInterface, Graphics Device Interface) is the message exchange between responsible system and plotter program, processes the images outputting of all Windows programs.Under Windows operating system, the application program that the overwhelming majority possesses graphical interfaces all be unable to do without GDI+, and the numerous functions utilizing GDI+ to provide just can output pattern on screen, printer and other output device easily, the operations such as text.The appearance of GDI+ makes programmer need not be concerned about hardware device and device drives, just the output of application program can be converted into the output on hardware device, achieve the isolation of program developer and hardware device, greatly facilitate development.
But, when using the drawing engines such as such as GDI+, can only of native operating sys-tern or in multiple application program uses, do not support that multiple operation systems share uses, simultaneously, a lot of programming platform is had not support quoting of GDI+ dynamic base in Windows operating system, some supports that GDI+ quotes, but configure very loaded down with trivial details, even some supports unstable, in addition, GDI+ dynamic base can only use in the application program of Windows operating system platform, do not support linux, quoting of the application program of the operating systems such as unix, especially continue to use GDI+ function to have very large obstacle under non-Windows environment to those.
Summary of the invention
The object of the present invention is to provide a kind of image automatic generation method and system, the service of drawing function can be provided to on-line customer, and the programming platform, the application program that do not use in limited subscriber client operating system.
Object of the present invention is achieved through the following technical solutions:
A kind of image automatic generation method, comprises the steps:
Waiting receive client send predetermined format drafting request msg after, to described drafting request msg carry out parsings acquisition analysis result;
According to described analysis result resource allocation data;
Drawing engine draws picture is used to obtain image data according to described analysis result and described resource data;
Described image data is returned described client;
Waiting when receiving the receipt notification data of predetermined format that described client sends, the drafting request msg state to be entered such as to enter.
A kind of image automatic creation system, comprising:
Receiver module, for receiving the drafting request msg that client sends, and is transferred to parsing module by the drafting request msg received, and also for when receiving the receipt notification data that client sends, entering and waiting for drafting request msg state;
Parsing module, for after receiving described drafting request msg, resolves described drafting request msg;
Configuration module, for according to described analysis result from resource allocation data in storer;
Drafting module, for using drawing engine draws picture to obtain image data according to described analysis result and described resource data;
Sending module, for returning described image data to described client.
According to the invention described above scheme, after user have sent drafting request msg by client, after the present invention program receives this drafting request msg, can resolve this drafting request msg, and the resource data needed for analysis result configuration, draw picture according to described analysis result and described resource data again and obtain image data, the image data of completing is returned to described client, receipt notification data is sent after client receives described image data, the drafting request msg states to be entered such as the present invention program then enters, namely wait-receiving mode client sends drafting request msg next time.The present invention is simple to operate, be easy to realize, and by the restriction of the programming platform used in user's client operating system, application program.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of the image automatic generation method of the embodiment of the present invention;
Fig. 2 is the structural representation of the image automatic creation system of the embodiment of the present invention.
Embodiment
Below in conjunction with embodiment and accompanying drawing, the present invention is further elaborated, but embodiments of the present invention are not limited thereto.
Embodiment 1
See Fig. 1, it is the schematic flow sheet of the image automatic generation method of the embodiment of the present invention.As shown in Figure 1, the image automatic generation method in the present embodiment can comprise the steps:
Step S101: waiting receive client send predetermined format drafting request msg after, parsing is carried out to described drafting request msg and obtains analysis result, enter step S102, wherein, in analysis result, mainly comprise the content information that user needs the scene picture drawn;
Step S102: according to described analysis result resource allocation data, enter step S103, mainly draw the resource data such as text, picture needed for scene picture according to analysis result configuration, these resource datas can obtain from Internet resources, can be extract from the database of server, or otherwise configure required resource data;
Step S103: use drawing engine draws picture to obtain image data according to described analysis result and described resource data, enter step S104;
Step S104: described image data is returned described client, enters step S105;
Step S105: waiting when receiving the receipt notification data of preset format that client sends, the drafting request msg state to be entered such as to enter, namely returns step S101 and wait for the drafting request msg that client sends next time.
According to the invention described above scheme, only need to apply the present invention program in one or more operating system platform in a network, then after user have sent drafting request msg by client, after the present invention program receives this drafting request msg, can resolve this drafting request msg, and the resource data needed for analysis result configuration, draw picture according to described analysis result and described resource data again and obtain image data, the image data of completing is returned to described client, receipt notification data is sent after client receives described image data, the drafting request msg states to be entered such as the present invention program then enters, namely wait-receiving mode client sends drafting request msg next time, the present invention is based on network platform communication, there is provided to the user that whole network is all the service of drafting in the mode in server end application the present invention program, only need client and server end network enabled communication environment, thus the drawing function that can only use in unit platform expands to whole network, also client is made the use of such as GDI+ drawing engine to be crossed over to the limitation that can only operate in Windows operating system, by the function sharing of such as GDI+ drawing engine to whole network, share for the non-Windows client in network or window client user and use.
Wherein in an embodiment, above-mentioned drawing engine can be GDI+ engine, and the function of GDI+ engine does not repeat to be repeated at this.
Wherein in an embodiment, above-mentioned drafting request msg and above-mentioned receipt notification data are xml data, because xml data have the strong feature of interoperability, these xml data are the file layout of plain text, text-only file can passing fire wall and communicating between different operating system easily, document content in the data of simultaneously xml form is separated completely with structure, as long as by certain pre-specified format structure of call format, in the format structure provided, add content arbitrarily, just can the scene content of drawing picture be changed arbitrarily.
When drawing request msg and being the xml data of subscribing form, user only needs to add arbitrarily the content of drawing scene picture by client according to subscribing form, can be that request draws multiple picture continuously, icon, text etc., draw picture, icon, the number of text etc. is unrestricted, during described drafting request msg is resolved in step S101, buffer area can be opened up and store described analysis result temporarily, when using drawing engine draws picture in step s 103, also can open up buffer area and store described image data temporarily, in the image data so once obtained, just can comprise many multiple pictures of completing, icon, the contents such as text, substantially reduce working time, improve the formation speed of image.
Moreover, above-mentioned drafting request msg can comprise the background information of scene picture yet to be built, pictorial information to be loaded, text message etc. to be loaded, such as, the scene needed as user is in the red background of everybody 400 pixels of length and width, draw the circle that radius is 50 pixels, data are the scene picture of png (image file storage format) compressed format, user can provide the data of the xml form organized following (data of following xml form are a kind of example, and embodiments of the present invention are not limited to following form) according to predetermined format:
Embodiment 2
According to the image automatic generation method of the invention described above, the present invention also provides a kind of image automatic creation system, this image automatic creation system can be installed in one or more operating system platform in a network, only need the computer networking of user, the scene picture just can accessed needed for these operating system platform of having installed this image automatic creation system (server) completing users by network is drawn, and uses what operating system without any restrictions to the computing machine of user.Just the embodiment of image automatic creation system of the present invention is described in detail below, as shown in Figure 2, image automatic creation system in this embodiment, comprises receiver module 201, parsing module 202, configuration module 203, drafting module 204, sending module 205, wherein:
Receiver module 201, for receiving the drafting request msg that client sends, and is transferred to parsing module 202 by the drafting request msg received, and also for when receiving the receipt notification data that client sends, entering and waiting for drafting request msg state;
Parsing module 202, for after receiving drafting request msg, resolves drafting request msg, wherein, mainly comprises the content information that user needs the scene picture drawn in analysis result;
Configuration module 203, for according to analysis result from resource allocation data in storer, the resource data such as text, picture mainly needed for analysis result configuration, these resource datas can obtain from Internet resources, can be extract from the database of server, or also can otherwise configure required resource data;
Drafting module 204, for using drawing engine draws picture to obtain image data according to analysis result and resource data;
Sending module 205, for returning image data to client.
According to the invention described above scheme, only need to apply image automatic creation system of the present invention in one or more operating system platform in a network, then after user have sent drafting request msg by client, after the present invention program receives this drafting request msg, can resolve this drafting request msg, and the resource data needed for analysis result configuration, draw picture according to described analysis result and described resource data again and obtain image data, the image data of completing is returned to described client, receipt notification data is sent after client receives described image data, the drafting request msg states to be entered such as the present invention program then enters, namely wait-receiving mode client sends drafting request msg next time, the present invention is based on network platform communication, there is provided to the user that whole network is all the service of drafting in the mode of serviced component, only need client and application operating system platform network enabled communication environment of the present invention, thus the drawing function that can only use in unit platform expands to whole network, also client is made the use of such as GDI+ drawing engine to be crossed over to the limitation that can only operate in Windows operating system, by the function sharing of such as GDI+ drawing engine to whole network, share for non-Windows client in network or window client user and use.
Wherein in an embodiment, above-mentioned drawing engine can be GDI+ engine, and the function of GDI+ engine does not repeat to be repeated at this.
Wherein in an embodiment, above-mentioned drafting request msg and above-mentioned receipt notification data are xml data, because xml data have the strong feature of interoperability, these xml data are the file layout of plain text, text-only file can passing fire wall and communicating between different operating system easily, document content in the data of simultaneously xml form is separated completely with structure, as long as by certain pre-specified format structure of call format, in the format structure provided, add content arbitrarily, just can the scene content of drawing picture be changed arbitrarily.
When drawing request msg and being the xml data of subscribing form, user only needs to add arbitrarily the content of drawing scene picture by client according to subscribing form, can be ask to draw plurality of pictures continuously, icon, text etc., draw picture, icon, the number of text etc. is unrestricted, when parsing module 202 is resolved described drafting request msg, buffer area can be opened up and store described analysis result temporarily, when drafting module 204 uses drawing engine draws picture, also can open up buffer area and store described image data temporarily, in the image data so once obtained, just can comprise many pictures of completing, icon, the contents such as text, substantially reduce working time, improve the formation speed of image.
Moreover above-mentioned drafting request msg can comprise the background information of scene picture yet to be built, pictorial information to be loaded, text message etc. to be loaded.
The present invention has the following advantages and beneficial effect relative to prior art tool:
(1) the present invention is based on Image Rendering engine communicates with the network platform, Image Rendering service is provided to the user that whole network is all in the mode of serviced component, thus can only in unit platform, use the Function Extension of the drawing engines such as such as GDI+ to whole network, the use making client span GDI+ can only operate in the limitation of Windows operating system, both supported that the application program of Windows operating system used, supported again that the application program of non-Windows operating system used;
(2) in the network environment communicated in multiple operating system, client need not be loaded down with trivial details quote configuration, connect, in network, any client can send directly to the network-side of serviced component the form subscribing form and draw request msg, make the use of multiple client to drawing engines such as such as GDI+ be not limited only to serviced component in local Windows operating system platform to use, clients all in network all can share the use of the function of the drawing engines such as such as GDI+, serviced component returns the good image data of the drawing engine draws such as such as GDI+ directly to client,
(3) for various reasons, a lot of compiling platform does not directly support quoting of the dynamic base of GDI+, the development platform that GDI+ quotes is not supported to those, want again to continue to use the software developer of the drawing function of GDI+ to be the technical bottleneck stepping not pass by, this problem that the present invention just well solves, as long as application software network enabled communication environment, regardless of what development platform that application software uses, only need the operating system platform transmission to application the present invention program of form according to the rules to draw request msg and just can continue to use GDI+ drawing function;
(4) serviced component can complete cross-platform use GDI+ drawing function in a network environment, as long as network connects normal, the operating system do not run in managed network is the operating system of Windows operating system or non-Windows environment, only need application software can send the drafting request msg of prescribed form to serviced component, solving so much develops software in non-Windows operating system can continue to use the GDI+ function of Windows environment operation, eliminate the mapping software module again developing identical functions in non-Windows operating system environment, worried from the software development solving developer's cross-platform use GDI+ to a great extent, alleviate the development of developer.
The above embodiment only have expressed several embodiment of the present invention, and it describes comparatively concrete and detailed, but therefore can not be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be as the criterion with claims.

Claims (6)

1. an image automatic generation method, is characterized in that, this method comprises the steps:
Waiting receive client send predetermined format drafting request msg after, parsing is carried out to described drafting request msg and obtains analysis result, wherein, described drafting request msg comprises the background information of scene picture yet to be built, pictorial information to be loaded, text message to be loaded;
According to described analysis result resource allocation data, wherein, described resource allocation data comprise text, the picture drawn needed for scene picture;
Drawing engine draws picture is used to obtain image data according to described analysis result and described resource data;
Described image data is returned described client;
Waiting when receiving the receipt notification data of predetermined format that described client sends, the drafting request msg state to be entered such as to enter;
Wherein, described drafting request msg and described receipt notification data are xml data.
2. image automatic generation method according to claim 1, is characterized in that, described drawing engine is GDI+ engine.
3. image automatic generation method according to claim 1, is characterized in that, when resolving described drafting request msg, opening up buffer area and storing described analysis result temporarily; When using drawing engine draws picture, opening up buffer area and storing described image data temporarily.
4. an image automatic creation system, is characterized in that, comprising:
Receiver module, for receiving the drafting request msg that client sends, and the drafting request msg received is transferred to parsing module, also for when receiving the receipt notification data that client sends, enter and wait for drafting request msg state, wherein, described drafting request msg comprises the background information of scene picture yet to be built, pictorial information to be loaded, text message to be loaded;
Parsing module, for after receiving described drafting request msg, resolves described drafting request msg;
Configuration module, for according to described analysis result from resource allocation data in storer, wherein, described resource allocation data comprise text, the picture drawn needed for scene picture;
Drafting module, for using drawing engine draws picture to obtain image data according to described analysis result and described resource data;
Sending module, for returning described image data to described client;
Wherein, described drafting request msg and described receipt notification data are xml data.
5. image automatic creation system according to claim 4, is characterized in that, described drawing engine is GDI+ engine.
6. image automatic creation system according to claim 4, is characterized in that, described parsing module, when described parsing module is resolved described drafting request msg, is opened up buffer area and stored described analysis result temporarily; Described drafting module, when using drawing engine draws picture, is opened up buffer area and is stored described image data temporarily.
CN201210422439.4A 2012-10-29 2012-10-29 image automatic generation method and system Active CN102968807B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210422439.4A CN102968807B (en) 2012-10-29 2012-10-29 image automatic generation method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210422439.4A CN102968807B (en) 2012-10-29 2012-10-29 image automatic generation method and system

Publications (2)

Publication Number Publication Date
CN102968807A CN102968807A (en) 2013-03-13
CN102968807B true CN102968807B (en) 2015-12-16

Family

ID=47798933

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210422439.4A Active CN102968807B (en) 2012-10-29 2012-10-29 image automatic generation method and system

Country Status (1)

Country Link
CN (1) CN102968807B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103531027B (en) * 2013-10-31 2016-05-11 广东威创视讯科技股份有限公司 The method for drafting of traffic intersection signal timing diagram and system
CN104020849B (en) * 2014-05-30 2015-09-30 爱培科科技开发(深圳)有限公司 Based on multiprogram display packing and the system simultaneously of Windows CE
US9986014B2 (en) * 2015-03-27 2018-05-29 Intel Corporation Systems and techniques for web communication
CN104866308A (en) * 2015-05-18 2015-08-26 百度在线网络技术(北京)有限公司 Scenario image generation method and apparatus

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1845177A (en) * 2006-05-17 2006-10-11 浙江大学 Three-dimensional remote rendering system and method based on image transmission
CN101794455A (en) * 2009-01-21 2010-08-04 施昊 Drawable network editor and network information input editing system
CN102609248A (en) * 2011-12-28 2012-07-25 方伟 Integrated avionics system modeling and simulation platform based on MDA (model driven architecture)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8587610B2 (en) * 2008-12-12 2013-11-19 Microsoft Corporation Rendering source content for display

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1845177A (en) * 2006-05-17 2006-10-11 浙江大学 Three-dimensional remote rendering system and method based on image transmission
CN101794455A (en) * 2009-01-21 2010-08-04 施昊 Drawable network editor and network information input editing system
CN102609248A (en) * 2011-12-28 2012-07-25 方伟 Integrated avionics system modeling and simulation platform based on MDA (model driven architecture)

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
GML可视化策略的比较研究;刘磊;《江西理工大学学报》;20101031;第31卷(第5期);第16-19页 *
过程工业监测平台动态监测画面编辑系统的研究与实现;周江林;《中国优秀硕士学位论文全文数据库 信息科技辑》;20081115(第11期);正文第7,12,13页 *

Also Published As

Publication number Publication date
CN102968807A (en) 2013-03-13

Similar Documents

Publication Publication Date Title
Paternò et al. A logical framework for multi-device user interfaces
CN107301048B (en) Internal control management system of application response type shared application architecture
CN105979009A (en) Method for automatically balancing increased load of cloud application container
CN101436148B (en) Integrated client end and method for performing interaction of desktop application and network WEB application
CN111597005A (en) Big data visualization three-dimensional GIS cloud rendering project generation system and method
CN102087577B (en) Location independent execution of user interface operations
CN103092599A (en) Software develop kit
CN108388460A (en) Long-range real-time rendering platform construction method based on graphics cluster
US10693816B2 (en) Communication methods and systems, electronic devices, and computer clusters
CN113902866B (en) Double-engine driven digital twin system
CN102968807B (en) image automatic generation method and system
CN111625293A (en) Terminal dual system based on linux kernel and hardware access management method thereof
CN115292020B (en) Data processing method, device, equipment and medium
CN104516885A (en) Implementation method and device of browse program double-kernel assembly
CN112333017A (en) Service configuration method, device, equipment and storage medium
CN115294310A (en) Multi-user scene control system and method based on GIS cloud rendering and storage medium
US8860740B2 (en) Method and apparatus for processing a display driver in virture desktop infrastructure
CN101155174B (en) Remote subscriber interface service implementing method based on common protocol
CN105897865B (en) A kind of network file service management system and method that agreement is unrelated
CN116636223A (en) Meta-universe stream transmission system and method
CN103002047A (en) RPC (Remote Procedure Call) type WEB SOA (Service-Oriented Architecture) method
CN113596164A (en) Data access method, device, system, equipment and medium
CN114726905A (en) Method, device, equipment and storage medium for accessing Tbox network to Android system
Sanna et al. A distributed architecture for searching, retrieving and visualizing complex 3D models on Personal Digital Assistants
Kemppainen Mobile computation offloading: A context-driven approach

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