CN103226456A - Image display method and device for tiled wall - Google Patents
Image display method and device for tiled wall Download PDFInfo
- Publication number
- CN103226456A CN103226456A CN201310146670XA CN201310146670A CN103226456A CN 103226456 A CN103226456 A CN 103226456A CN 201310146670X A CN201310146670X A CN 201310146670XA CN 201310146670 A CN201310146670 A CN 201310146670A CN 103226456 A CN103226456 A CN 103226456A
- Authority
- CN
- China
- Prior art keywords
- border
- memory device
- device field
- thread
- image
- 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.)
- Pending
Links
Images
Landscapes
- Image Generation (AREA)
Abstract
The embodiment of the invention is that vector data in a vector file required to be displayed on a tiled wall is divided into N data cells, N threads and N first memory contexts are created, and the N threads are respectively in charge of performing paint operation of the N data cells on the N first memory contexts, so that more data can be processed per unit time and the panting time is saved. Besides, as images are respectively painted in a plurality of first memory device contexts, then the images on the plurality of first device contexts are painted in corresponding areas on a second memory device context, and finally, the images on the second memory device context are painted on a display window device context, a better painting effect is guaranteed.
Description
Technical field
The present invention relates to the image display technology field, be specifically related to the method and apparatus that a kind of combination shows.
Background technology
In the prior art, on combination, show Geographic Information System (Geographic Information System, abbreviation GIS) conventional method of vector graphics is to obtain vector figure data from vector file, and directly go up and draw at the window context (Device Context is called for short DC) of splicing.But than the data that show to need bigger geographic area on common PC, and the big more data volume of the map datum drawn that often needs in geographic area is also just big more at display graphics on the combination, and the drafting time is also long more.When particularly needing to draw millions of complex polygons, the processing of data and demonstration often need for a long time.Therefore, if the graph data that comprises in the vector file is a lot, using traditional method to draw will need the more time.
Summary of the invention
The method and apparatus that the embodiment of the invention provides a kind of combination image to show is in the hope of showing the big data quantity polar plot quickly and accurately on combination.
The method that first aspect, the embodiment of the invention provide a kind of combination image to show comprises:
Obtain the current vector file that needs the image of demonstration of combination, and the vector data in the described vector file is divided into N data unit, wherein N is a positive integer;
Create N first border, memory device field and border, 1 second memory device field;
Create N thread, a described N thread is corresponding one by one with described N border, the first memory device field, and a described N thread carries out image rendering respectively according to described N data unit on each border, the self-corresponding first memory device field;
Be plotted to corresponding zone on the border, the described second memory device field respectively with drawing the image that obtains on described N the border, the first memory device field;
With the image rendering on the border, the described second memory device field to showing on the window context.
Further, a described N thread is worked on a core chip of central processing unit respectively.
Further, a described N thread carries out image rendering respectively according to described N data unit simultaneously on each border, the self-corresponding first memory device field.
Further, described method also comprises: after creating N first border, memory device field and border, 1 second memory device field, draw identical background colour on described N border, the first memory device field and border, 1 second memory device field.
Further, N equals 4.
Second aspect, the embodiment of the invention also provide a kind of combination image device shown, comprising:
Divide module, be used to obtain the vector file of the image of current the needs demonstration of combination, and the vector data in the described vector file is divided into N data unit, wherein N is a positive integer;
First creation module is used to create N first border, memory device field and border, 1 second memory device field;
Second creation module is used to create N thread, and a described N thread is corresponding one by one with described N border, the first memory device field, and a described N thread carries out image rendering respectively according to described N data unit on each border, the self-corresponding first memory device field;
First drafting module is used for being plotted to corresponding zone on the border, the described second memory device field respectively with drawing the image that obtains on described N the border, the first memory device field;
Second drafting module is used for the image rendering on the border, the described second memory device field to showing the window context.
The embodiment of the invention adopts the vector data in the vector file that need show on combination to be divided into N data unit, and create N thread and N border, the first internal memory field, N thread is responsible for respectively on N border, the first internal memory field operation being drawn in N data unit, can handle more data in unit interval, saved the drafting time, and, owing to be that image is plotted in border, a plurality of first memory device field respectively, again with the corresponding zone on border, the second memory device field of the image rendering on a plurality of first contexts, at last with the image rendering on the border, the second memory device field to the display window context, guaranteed to draw preferably effect.
Description of drawings
Fig. 1 is the method flow synoptic diagram that a kind of combination image that the embodiment of the invention provides shows;
Fig. 2 is a kind of combination image device shown structural representation that the embodiment of the invention provides.
Embodiment
The method and apparatus that the embodiment of the invention provides a kind of combination image to show is in the hope of showing the big data quantity polar plot quickly and accurately on combination.
In order to make those skilled in the art person understand the present invention program better, below in conjunction with the accompanying drawing in the embodiment of the invention, technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the embodiment of a part of the present invention, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills should belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
The method that the embodiment of the invention provides a kind of combination image to show comprises:
Obtain the current vector file that needs the image of demonstration of combination, and the vector data in the described vector file is divided into N data unit, wherein N is a positive integer;
Create N first border, memory device field and border, 1 second memory device field;
Create N thread, a described N thread is corresponding one by one with described N border, the first memory device field, and a described N thread carries out image rendering respectively according to described N data unit on each border, the self-corresponding first memory device field;
Be plotted to corresponding zone on the border, the described second memory device field respectively with drawing the image that obtains on described N the border, the first memory device field;
With the image rendering on the border, the described second memory device field to showing on the window context.
Need to prove, in embodiments of the present invention, first border, memory device field and border, the second memory device field all are meant border, memory device field, be internal memory DC, for the convenience of describing, the border, memory device field of being responsible for the image rendering of each data cell is called border, the first memory device field, the border, memory device field of being responsible for the image rendering of whole combination scope is called border, the second memory device field.
Further, an above-mentioned N thread can be worked on a core chip of central processing unit respectively, and promptly corresponding one by one between thread and the core chip, each core chip of central processing unit is responsible for the work of a thread; Certainly, a core chip of central processing unit also can be corresponding with two or more thread, i.e. the core chip work of responsible two or more threads simultaneously;
Further, a described N thread carries out image rendering respectively according to described N data unit simultaneously on each border, the self-corresponding first memory device field;
Further, after creating N first border, memory device field and border, 1 second memory device field, can on described N border, the first memory device field and border, 1 second memory device field, draw identical background colour.
Therefore, the embodiment of the invention adopts the vector data in the vector file that need show on combination to be divided into N data unit, and create N thread and N border, the first internal memory field, N thread is responsible for respectively on N border, the first internal memory field operation being drawn in N data unit, can handle more data in unit interval, saved the drafting time, and, owing to be that image is plotted in border, a plurality of first memory device field respectively, again with the corresponding zone on border, the second memory device field of the image rendering on a plurality of first contexts, at last with the image rendering on the border, the second memory device field to the display window context, guaranteed to draw preferably effect.
The method that the embodiment of the invention also provides a kind of combination image to show, referring to shown in Figure 1, idiographic flow is as follows:
S101, obtain the vector file of the current image that need to show of combination, and the vector data in the described vector file is divided into N data unit, wherein N is a positive integer;
S102, N first border, memory device field of establishment and border, 1 second memory device field;
S103, N thread of establishment, a described N thread is corresponding one by one with described N border, the first memory device field, and a described N thread carries out image rendering respectively according to described N data unit on each border, the self-corresponding first memory device field;
S104, the image that drafting on described N the border, the first memory device field is obtained are plotted to corresponding zone on the border, the described second memory device field respectively;
S105, with the image rendering on the border, the described second memory device field to showing on the window context.
Need to prove, in embodiments of the present invention, combination is divided into each logic region of N, the image that each logic region need show is a corresponding above-mentioned N data unit respectively, create N the first internal memory DC simultaneously, corresponding one by one with N data unit, create N thread simultaneously, each self-corresponding data cell is drawn in control on N the first internal memory DC respectively.
For example, 4 parts that combination are divided into sphere of movements for the elephants shape, create i.e. above the first internal memory DC of four internal memory DC(in the program), be respectively MDC1, MDC2, MDC3 and MDC4, use these four internal memory DC that 4 partial data (i.e. data cell above) of combination are drawn, show such as MDC1 control combination top left region, MDC2 control combination right regions shows, zone, MDC3 control combination lower-left shows that MDC4 control lower right area shows; Create an internal memory DC (i.e. the second internal memory DC above) again, be designated as MDC, this internal memory DC correspondence be the demonstration of whole combination scope; So just a window has been divided into four parts, and has gone to handle with different internal memory DC respectively;
Create four threads, be designated as T1, T2, T3 and T4 respectively, each thread only is responsible for the associative operation of a memory buffer object (being internal memory DC), comprises reading and drawing of vector data;
When needs show certain vector file on combination, obtain this vector file and need data presented, and with 4 parts of data difference, be designated as Data1, Data2, Data3 and Data4, the part of the corresponding combination of each part need to prove that this part is just cut apart the current data presented that needs, be not that whole piece of data is all handled, for do not show or later on possibly data presented do not deal with;
The compatibility of 4 threads is set, each thread promptly is set moves in the core chip of CPU, four threads can concurrent working, and MDC1 draws Data1, and MDC2 draws Data2, and MDC3 draws Data3, and MDC4 draws Data4; Because 4 threads are started working simultaneously, and the data volume that each memory buffer is responsible for drawing all is the part of whole data, so that 4 memory buffers are all handled the T.T. of data is faster than all data of buffered certainly;
The displaying contents of MDC1, MDC2, MDC3 and MDC4 is plotted in the top left region of the relevant position of MDC: MDC1 at MDC respectively, and MDC2 is in the right regions of MDC, and MDC3 is in the zone, lower-left of MDC, and MDC4 is in the lower right area of MDC; So just the zone of cutting apart originally being stitched together constitutes complete data, promptly on internal memory the displaying contents of 4 parts is merged into one;
Content on the MDC is plotted on the window DC.
Need to prove that in embodiments of the present invention, the memory buffer object also can be described as internal memory DC.
Therefore, the embodiment of the invention is divided into several portions with big data, and offer a plurality of threads and draw at a plurality of internal memory DC, expend time in still less, and the image that a plurality of internal memory DC draw is plotted on the internal memory DC again, finish image mosaic, at last by this internal memory DC with image rendering to window DC, guaranteed to draw preferably effect.
The embodiment of the invention also provides a kind of combination image device shown, comprising:
Divide module, be used to obtain the vector file of the image of current the needs demonstration of combination, and the vector data in the described vector file is divided into N data unit, wherein N is a positive integer;
First creation module is used to create N first border, memory device field and border, 1 second memory device field;
Second creation module is used to create N thread, and a described N thread is corresponding one by one with described N border, the first memory device field, and a described N thread carries out image rendering respectively according to described N data unit on each border, the self-corresponding first memory device field;
First drafting module is used for being plotted to corresponding zone on the border, the described second memory device field respectively with drawing the image that obtains on described N the border, the first memory device field;
Second drafting module is used for the image rendering on the border, the described second memory device field to showing the window context.
Wherein, the N that second creation module an is created thread is worked on a core chip of central processing unit respectively, thereby does not need between a plurality of thread to switch, and has improved the utilization ratio of CPU;
Further, N thread carries out image rendering respectively according to described N data unit simultaneously on each border, the self-corresponding first memory device field, and promptly multi-threaded parallel is carried out graphic plotting, thereby the system that makes can handle more data in the unit interval;
Further, the combination image device shown that the embodiment of the invention provides also comprises the 3rd drafting module, the 3rd drafting module is used for after described second creation module is created N first border, memory device field and border, 1 second memory device field, draws identical background colour on described N border, the first memory device field and border, 1 second memory device field.
Referring to shown in Figure 2, combination image device shown specifically comprises:
Divide module 201, be used to obtain the vector file of the image of current the needs demonstration of combination, and the vector data in the described vector file is divided into N data unit, wherein N is a positive integer;
First creation module 202 is used to create N first border, memory device field and border, 1 second memory device field;
Second creation module 203 is used to create N thread, and a described N thread is corresponding one by one with described N border, the first memory device field, and a described N thread carries out image rendering respectively according to described N data unit on each border, the self-corresponding first memory device field;
First drafting module 204 is used for being plotted to corresponding zone on the border, the described second memory device field respectively with drawing the image that obtains on described N the border, the first memory device field;
Second drafting module 205 is used for the image rendering on the border, the described second memory device field to showing the window context.
Therefore, division module 201 in the combination image display device that the embodiment of the invention provides is divided into a plurality of data cells with vector data to be shown, and first creation module 202 has been created a plurality of first internal memory DC, each first internal memory DC is responsible for the drafting of a data unit, a plurality of threads of second creation module, 203 establishments simultaneously can be controlled a plurality of first internal memory DC respectively, reduced the time of image rendering, and, first drafting module 204 is plotted to the second internal memory DC again with the image on a plurality of first internal memory DC, at last by the second internal memory DC with image rendering to window DC, improved the effect of image rendering.
One of ordinary skill in the art will appreciate that all or part of step in the whole bag of tricks of the foregoing description is to instruct relevant hardware to finish by program, this program can be stored in the computer-readable recording medium, storage medium can comprise: ROM (read-only memory) (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc.
Simultaneously, in the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields, do not have the part that describes in detail among certain embodiment, can be referring to the associated description of other embodiment.
More than method and apparatus that combination image that the embodiment of the invention provided is shown be described in detail, used specific case herein principle of the present invention and embodiment are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.
Claims (10)
1. the method that the combination image shows is characterized in that, comprising:
Obtain the current vector file that needs the image of demonstration of combination, and the vector data in the described vector file is divided into N data unit, wherein N is a positive integer;
Create N first border, memory device field and border, 1 second memory device field;
Create N thread, a described N thread is corresponding one by one with described N border, the first memory device field, and a described N thread carries out image rendering respectively according to described N data unit on each border, the self-corresponding first memory device field;
Be plotted to corresponding zone on the border, the described second memory device field respectively with drawing the image that obtains on described N the border, the first memory device field;
With the image rendering on the border, the described second memory device field to showing on the window context.
2. method according to claim 1 is characterized in that, a described N thread is worked on a core chip of central processing unit respectively.
3. method according to claim 2 is characterized in that, a described N thread carries out image rendering respectively according to described N data unit simultaneously on each border, the self-corresponding first memory device field.
4. method according to claim 1 is characterized in that, described method also comprises:
After creating N first border, memory device field and border, 1 second memory device field, on described N border, the first memory device field and border, 1 second memory device field, draw identical background colour.
5. method according to claim 1 is characterized in that described N equals 4.
6. a combination image device shown is characterized in that, comprising:
Divide module, be used to obtain the vector file of the image of current the needs demonstration of combination, and the vector data in the described vector file is divided into N data unit, wherein N is a positive integer;
First creation module is used to create N first border, memory device field and border, 1 second memory device field;
Second creation module is used to create N thread, and a described N thread is corresponding one by one with described N border, the first memory device field, and a described N thread carries out image rendering respectively according to described N data unit on each border, the self-corresponding first memory device field;
First drafting module is used for being plotted to corresponding zone on the border, the described second memory device field respectively with drawing the image that obtains on described N the border, the first memory device field;
Second drafting module is used for the image rendering on the border, the described second memory device field to showing the window context.
7. device according to claim 6 is characterized in that, N the thread that described second creation module is created worked on a core chip of central processing unit respectively.
8. device according to claim 7 is characterized in that, a described N thread carries out image rendering respectively according to described N data unit simultaneously on each border, the self-corresponding first memory device field.
9. device according to claim 6, it is characterized in that, described device also comprises the 3rd drafting module, be used for after described second creation module is created N first border, memory device field and border, 1 second memory device field, on described N border, the first memory device field and border, 1 second memory device field, draw identical background colour.
10. device according to claim 6 is characterized in that described N equals 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310146670XA CN103226456A (en) | 2013-04-24 | 2013-04-24 | Image display method and device for tiled wall |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310146670XA CN103226456A (en) | 2013-04-24 | 2013-04-24 | Image display method and device for tiled wall |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103226456A true CN103226456A (en) | 2013-07-31 |
Family
ID=48836926
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310146670XA Pending CN103226456A (en) | 2013-04-24 | 2013-04-24 | Image display method and device for tiled wall |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103226456A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106340055A (en) * | 2016-08-19 | 2017-01-18 | 江苏电力信息技术有限公司 | Multithreading-based OpenGL quick drawing method |
CN112653840A (en) * | 2020-12-18 | 2021-04-13 | 深圳市普汇智联科技有限公司 | Large-view-field video panorama stitching method based on hybrid projection transformation model |
CN114327338A (en) * | 2021-12-28 | 2022-04-12 | 威创集团股份有限公司 | Super-resolution image display system and image display method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0561630A (en) * | 1991-08-30 | 1993-03-12 | Hitachi Medical Corp | Method for displaying multiwindow of image display device |
JPH1091225A (en) * | 1996-09-13 | 1998-04-10 | Toshiba Corp | Method and device for automatic image processing program generation for robot, and method for automatic robot program correction |
CN101706970A (en) * | 2009-11-25 | 2010-05-12 | 广东威创视讯科技股份有限公司 | Method and application for layered processing of operation objects |
CN103049927A (en) * | 2013-01-17 | 2013-04-17 | 浙江大学 | Real-time ray tracing and rendering method based on GPU (Graphics Processing Unit) aggregate |
-
2013
- 2013-04-24 CN CN201310146670XA patent/CN103226456A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0561630A (en) * | 1991-08-30 | 1993-03-12 | Hitachi Medical Corp | Method for displaying multiwindow of image display device |
JPH1091225A (en) * | 1996-09-13 | 1998-04-10 | Toshiba Corp | Method and device for automatic image processing program generation for robot, and method for automatic robot program correction |
CN101706970A (en) * | 2009-11-25 | 2010-05-12 | 广东威创视讯科技股份有限公司 | Method and application for layered processing of operation objects |
CN103049927A (en) * | 2013-01-17 | 2013-04-17 | 浙江大学 | Real-time ray tracing and rendering method based on GPU (Graphics Processing Unit) aggregate |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106340055A (en) * | 2016-08-19 | 2017-01-18 | 江苏电力信息技术有限公司 | Multithreading-based OpenGL quick drawing method |
CN112653840A (en) * | 2020-12-18 | 2021-04-13 | 深圳市普汇智联科技有限公司 | Large-view-field video panorama stitching method based on hybrid projection transformation model |
CN114327338A (en) * | 2021-12-28 | 2022-04-12 | 威创集团股份有限公司 | Super-resolution image display system and image display method |
CN114327338B (en) * | 2021-12-28 | 2024-02-09 | 威创集团股份有限公司 | Ultrahigh-resolution image display system and image display method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107729094B (en) | User interface rendering method and device | |
CN101593354B (en) | Method and device for redrawing two-dimension vector graphics | |
CN104200506A (en) | Method and device for rendering three-dimensional GIS mass vector data | |
CN104765594A (en) | Method and device for displaying graphical user interface | |
CN103413343A (en) | 3D (Three-Dimensional) graphic animation engine | |
CN103020888A (en) | Image translation updating display method and system | |
CN103226456A (en) | Image display method and device for tiled wall | |
CN103310409B (en) | A kind of Tile-based renders the fast triangle block method of framework GPU | |
CN110297585A (en) | Electronic white board realization method, device, equipment and storage medium | |
US11100722B2 (en) | Method, apparatus, electronic device, and storage medium for displaying 3D shape in expanded manner | |
CN105812881A (en) | User interface window processing method and system and television set | |
CN107621951B (en) | View level optimization method and device | |
CN103577046A (en) | 3D stereoscopic desktop system and implementation method thereof | |
CN107526576B (en) | Method and device for displaying view components of page | |
US8887073B2 (en) | Reshaping interfaces using content-preserving warps | |
CN111210486A (en) | Method and device for realizing streamer effect | |
CN109189537B (en) | The dynamic display method of page info calculates equipment and computer storage medium | |
US11887255B2 (en) | Method and system for rendering boundary of map area within game map, and computer-readable storage medium | |
CN104156427A (en) | Graph drawing method and system supporting large data volume fast refreshing | |
CN102129502A (en) | Optimal electrical power line selection method and system | |
CN103246426A (en) | Method and device for processing multiple icons | |
CN107169917B (en) | Device for vector graphics processor to finish real-time drawing of graphics image without DDR | |
CN112333400A (en) | Hand-drawn video optimization method and device for offline display | |
JP5738442B2 (en) | Map drawing device, navigation device, and map drawing method | |
CN105354295A (en) | Dynamic display apparatus and method for three-dimensional dynamic plotted-point label |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20130731 |
|
RJ01 | Rejection of invention patent application after publication |