CN1555027A - New method for displaying figure on computer screen - Google Patents
New method for displaying figure on computer screen Download PDFInfo
- Publication number
- CN1555027A CN1555027A CNA2003101234713A CN200310123471A CN1555027A CN 1555027 A CN1555027 A CN 1555027A CN A2003101234713 A CNA2003101234713 A CN A2003101234713A CN 200310123471 A CN200310123471 A CN 200310123471A CN 1555027 A CN1555027 A CN 1555027A
- Authority
- CN
- China
- Prior art keywords
- display
- meticulous
- computer screen
- effect
- new method
- 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 present invention relates to new method of displaying figure on computer screen. Available figure design software adopts single display mode of either common display or fine display and is inadequate for the design of some complicated figure, such as safety shading. The method of the present invention combines these two kinds of display mode and includes common display of base figure, deformation resisting treatment of the selected area to be fine displayed and superposing the treated area to the base figure. The method can reach the effect of figure display with co-existed common display and fine display, compromise the display sped and display precision, and eliminate deformation of the figure while ensuring display speed. In addition, the present invention has certain flexibility and raised figure designing efficiency.
Description
Technical field
The invention belongs to the computer graphical design field, be specifically related to a kind of on computer screen the new method of display graphics.
Background technology
When the system of using a computer carried out graphic designs, the figure of designing will show on computer screen, and the confession deviser checks and make amendment that therefore, the display effect of figure has material impact to design process.Because the characteristic of raster plotter the phenomenon of losing shape can occur during with the computing machine display graphics, promptly the part lines can present zigzag.Disclose many antialiasing method in the existing document and reduced or eliminated this distortion effect.These technology can be divided into two classes: wherein a class promptly increases sampled point based on improving resolution; Another kind of is as a limited area, to area sampling pixel.Specifically can be referring to document " computer graphics " (work such as Sun Jiaguang, Beijing: publishing house of Tsing-Hua University, 1994).
According to whether adopting anti-aliasing technology, the screen display of graph data can be divided into two kinds of patterns in the graphic plotting: common display and meticulous demonstration.Common display is not carried out anti-aliasing processing, and anti-aliasing processing is then carried out in meticulous demonstration.Owing to eliminated sawtooth, the effect of meticulous demonstration is more true to nature accurately, and still the anti-aliasing while has also increased the processing time, causes meticulous speed of displaying slower than common display.The difference of this speed and precision can show very obviously for some special pattern.
Existing graphic design software active computer screen all is to adopt single-mode to carry out graphic presentation when carrying out graphic presentation, promptly or adopt common display (as the false proof design system of the hyperline of Founder Electronics Co., Ltd.), or adopt meticulous demonstration (as the Illustrator of U.S. Adobe company).The display mode of this figure is unaccommodated for some complicated graphic designs activities such as security patterns.Along with the raising of false proof requirement, security pattern has developed to such an extent that become increasingly complex meticulously, and show: the graph data amount is big, comprises very many lines, and the width and the spacing of lines are very trickle simultaneously.For this class complex figure, adopt common display can not reflect design effect strictly according to the facts, and meticulous demonstration is slower for the speed of big data quantity figure, and the deviser is in time responded.As seen the graphic presentation of two kinds of single-modes all comes with some shortcomings.
Summary of the invention
At the defective that exists in the prior art, the objective of the invention is to propose a kind of on computer screen the new method of display graphics, this method can obtain the graphic presentation of general effect and the coexistence of meticulous effect on computer screen, on performance, can take into account the requirement aspect display speed and the levels of precision two, can eliminate the phenomenon of losing shape of figure, can guarantee speed of displaying again, have certain dirigibility again simultaneously, thereby further improve the work efficiency of graphic designs.
For reaching above purpose, the technical solution used in the present invention is:
A kind of on computer screen the new method of display graphics, may further comprise the steps:
The whole figure that (1) at first will show uses common mode to show on computer screen, as base map;
(2) on base map, select one or more zones then as required, the visuals that drops in this zone is carried out anti-aliasing processing, form the fine pattern of this selection area;
(3) fine pattern of this selection area is added to chosen relevant position on the base map is as final display effect.
In order to have better effect, selected zone can be one and/or a plurality of circle, rectangle, polygon, ellipse or its combination in the step (2).The stack of the fine pattern in chosen zone and base map can be adopted the method stack of memory bitmap in the step (3).
Effect of the present invention is: one, by technical scheme of the present invention, can obtain the graphic presentation of general effect and meticulous effect coexistence.On screen, draw through antialiasing method the part graphics field, presents meticulous effect; And remainder is not done anti-aliasing processing, presents general effect.Two, the method for the invention can be taken into account the requirement of display speed and levels of precision.On the one hand, selected part shows that in the high precision mode on the other hand, because meticulous demonstration generally only relates to the partial graph graphic data, so speed can be too not slow.Three, the method for the invention has dirigibility, shows that the operator can select the part of meticulous demonstration as required.Four, the method for the invention is applicable to all kinds of graphic designs fields such as machinery, electronics, building, security pattern, packing, for figure complexity, design occasion better effects if that data volume is big.The present invention realizes simply, can be applied to the work efficiency that has also improved graphic designs in the computer graphical design software greatly easily.
Why the present invention has above effect, mainly is the pattern that adopts a kind of common display and meticulous demonstration to combine because of the present invention, combines the advantage of two kinds of prior aries.In the figure that shows, chosen subregion presents meticulous effect, is meticulous demonstration, and all the other chosen parts in end present general effect, are common display.Default display mode is a common display, needs the zone of meticulous demonstration freely to be specified by the operator, and as not specifying, then whole figure is general effect.
Existing single display mode is contained in the method for the invention, can be considered its special case.As not specifying meticulous viewing area, then the method for the invention deteriorates to single common display mode; As to specify whole graphics field be meticulous viewing area, and then the method for the invention deteriorates to single meticulous display mode.
Description of drawings
The meticulous display effect figure of the security pattern figure that Fig. 1 is a lines complexity, data volume is big;
Fig. 2 is the common display design sketch of this security pattern figure;
Fig. 3 is the design sketch that comprises a meticulous viewing area that this security pattern figure adopts the inventive method to show;
Fig. 4 is two the meticulous viewing area design sketchs that comprise that this security pattern figure adopts the inventive method demonstration;
Fig. 5 is the process flow diagram of the method for the invention.
Embodiment
Below in conjunction with accompanying drawing the specific embodiment of the present invention is further described.
Fig. 1 is the meticulous display effect figure of a security pattern figure, and Fig. 2 is the common display effect of same figure under identical displaying ratio, and the levels of precision of visible Fig. 1 is better than Fig. 2.Yet on display speed, Fig. 1 is obviously not as Fig. 2.Same machine conditions (CPU is Pentium III, in save as 256M, operating system is Chinese Windows 2000) under test, Fig. 1 shows fully need be nearly 3 seconds, Fig. 2 then finished demonstration within 1 second.
Fig. 3 is the actual effect that adopts a security pattern figure of the inventive method demonstration.As seen from the figure, this figure 1 is to show by the method that common display and meticulous demonstration combine, and wherein butterfly pattern 3 is meticulous effect, and remainder 2 is a general effect.As shown in Figure 5, the implementation procedure of this embodiment is:
A kind of on computer screen the new method of display graphics, may further comprise the steps:
(1) method by common display is presented at whole figure 1 on the screen, as base map;
(2) press left mouse button, rolling mouse on screen is pulled out a choice box simultaneously.The border of this choice box shows on screen.When treating that its frame is lived the meticulous demonstration of desire regional, unclamp left mouse button, this moment, chosen rectangular area 3 was meticulous viewing area;
Travel through each graphic element, the lines that drop in the meticulous viewing area are carried out anti-aliasing processing, the result is write in the memory bitmap;
(3) bitmap that obtains in (2) the is added to relevant position on gained base map in (1) promptly obtains the display effect of Fig. 3.
In the present embodiment step (1), adopt Bresenham algorithm Plotted line, circle and the ellipse introduced in document " computer graphics " (work such as Sun Jiaguang, Beijing: publishing house of Tsing-Hua University, the 1994) chapter 4, finish the common display of figure.The Bresenham algorithm is the rudimentary algorithm that those skilled in the art are familiar with, and is not described in detail in this.
In the present embodiment step (2), it is document " based on the digital engraving technology research of NPR " (QiWen Fa work that selection area is carried out the method that anti-aliasing processing adopts, Peking University's master thesis, 2003) the middle anti-aliasing algorithm that proposes based on vector graphics.Its ultimate principle is: lines are every when major axes orientation (ideal line is along this axial projection head) advances 1 pixel unit, then along respectively drawing 1 picture element from direction of principal axis in these lines both sides.Each point all multiply by weight w as actual Fill Color with the brightness of drawing color.The value of W satisfies following formula: w+d=1, wherein d be this pixel from direction of principal axis with the distance of ideal line.
The method that is adopted on the base map that in the step (3) fine pattern is added to is the memory bitmap method.This method realizes by Graphics Device Interface (GDI:Graphical DeviceInterface) function that calls Windows operating system.Concrete steps are: (1) is called GDI function C reateCompatibleDC and is created an internal memory DC with current screen device context (DC:Device Context) ScreenDC compatibility, is designated as MemDC; (2) call GDI function C reateCompatibleBitmap and create a memory bitmap Bmp, and it is selected among the MemDC by GDI function S electObject; (3) next on this memory bitmap, carry out antialiased rendition, finish the content of drawing in the memory bitmap of back and be fine pattern according to the method for describing in the step (2); Call GDI function BitBlt at last this memory bitmap is attached to relevant position on the screen DC, reach the effect of stack with this.Above process can be not difficult to draw by read documents " Programming Windows " (Charles Petzold work, Seattle:Microsoft Press, 1996).
Present embodiment be one preferred embodiment.Those skilled in the art be not difficult to draw other implementation method and without prejudice to overall thought of the present invention.
Wherein, select meticulous viewing area, can also adopt the method for dialog box input except adopting the dilatory method of above-mentioned mouse.Promptly eject a dialog box, operator's input value therein determines the position of meticulous viewing area.
Wherein, meticulous viewing area is generally rectangle, but also can be other shapes, as circular, oval, fan-shaped, polygon etc.Meticulous viewing area has only one usually, but also can be for a plurality of, so that meticulous effect is checked in a plurality of zones of figure.As shown in Figure 4, wherein 2 zones are meticulous effect, comprise a diamond-shaped area 4 and a rectangular area 5.
Wherein, the anti-aliasing algorithm of figure can have different implementations in the meticulous demonstration.Such as (1) box filter sampling method.Ultimate principle is that calculating pixel is selected different gray-scale values with the area of lines part.(2) weighting arda sampling algorithm.This method is proposed in 1981 by Gupta and Sproull, ultimate principle is to adopt cone filter to take a sample, make pixel be assigned with more gray-scale value near ideal line, the wave filter of adjacent two pixels intersects simultaneously, so during this intersecting area of vertical element process, will all distribute to suitable gray-scale value to these two pixels.Above algorithm has detailed introduction in document " computer graphics " (work such as Sun Jiaguang, Beijing: publishing house of Tsing-Hua University, 1994) chapter 4.
Wherein, the method except above-mentioned memory bitmap of combining of meticulous display part and base map also can adopt other feasible technology.For example adopt the method for intermediate images file.Concrete steps are: (1) creates an image file, and its form adopts picture formats commonly used such as BMP/JPEG/TIFF, and image is empty when initial; (2) carry out anti-aliasing processing, the fine pattern result is deposited in this document; Need only when (3) superposeing and this image file is shown in the relevant position of base map.The image that how to show common format such as BMP/JPEG/TIFF can be referring to document " graphic image file form complete works " (work such as David Kay, Bai Dongyi, Beijing: Xueyuan Press, 1994); (4) again this document is deleted after demonstration is finished.Because it is this method relates to the access of external file, therefore slow than the method for memory bitmap from the execution speed.
Pass through present embodiment, when carrying out graphic designs, active computer of the present invention as can be seen has good effect, can not only obtain the graphic presentation of general effect and meticulous effect coexistence simultaneously, but also obviously improved the speed of graphic designs, thereby improved the work efficiency of graphic designs greatly.
Claims (3)
1. the new method of a display graphics on computer screen may further comprise the steps:
The whole figure that (1) at first will show uses common mode to show on computer screen, as base map;
(2) on base map, select one or more zones then as required, the visuals that drops in this zone is carried out anti-aliasing processing, form the fine pattern of this selection area;
(3) fine pattern of this selection area is added to chosen relevant position on the base map is as final display effect.
2. as claimed in claim 1 a kind of on computer screen the new method of display graphics, it is characterized in that: selected zone can be one and/or a plurality of circle, rectangle, polygon, ellipse or its combination in the step (2).
3. as claimed in claim 1 a kind of on computer screen the new method of display graphics, it is characterized in that: the stack of the fine pattern in chosen zone and base map can be adopted the method stack of memory bitmap in the step (3).
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2003101234713A CN1555027A (en) | 2003-12-29 | 2003-12-29 | New method for displaying figure on computer screen |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2003101234713A CN1555027A (en) | 2003-12-29 | 2003-12-29 | New method for displaying figure on computer screen |
Publications (1)
Publication Number | Publication Date |
---|---|
CN1555027A true CN1555027A (en) | 2004-12-15 |
Family
ID=34338878
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNA2003101234713A Pending CN1555027A (en) | 2003-12-29 | 2003-12-29 | New method for displaying figure on computer screen |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1555027A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101231758B (en) * | 2007-09-17 | 2010-09-08 | 北大方正集团有限公司 | Method and apparatus for generating safety shading in plate making anti-forgery |
CN102063832A (en) * | 2010-11-26 | 2011-05-18 | 北京腾瑞万里科技有限公司 | Method and device for drawing vector map of mobile terminal |
CN106740113A (en) * | 2017-01-12 | 2017-05-31 | 苏州速显微电子科技有限公司 | A kind of type pointer virtual instrument disk and its implementation |
CN108447106A (en) * | 2018-03-12 | 2018-08-24 | 北京红马传媒文化发展有限公司 | The generation method and device of venue seating maps |
CN112434189A (en) * | 2020-12-02 | 2021-03-02 | 新华三大数据技术有限公司 | Data query method, device and equipment |
-
2003
- 2003-12-29 CN CNA2003101234713A patent/CN1555027A/en active Pending
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101231758B (en) * | 2007-09-17 | 2010-09-08 | 北大方正集团有限公司 | Method and apparatus for generating safety shading in plate making anti-forgery |
CN102063832A (en) * | 2010-11-26 | 2011-05-18 | 北京腾瑞万里科技有限公司 | Method and device for drawing vector map of mobile terminal |
CN106740113A (en) * | 2017-01-12 | 2017-05-31 | 苏州速显微电子科技有限公司 | A kind of type pointer virtual instrument disk and its implementation |
CN108447106A (en) * | 2018-03-12 | 2018-08-24 | 北京红马传媒文化发展有限公司 | The generation method and device of venue seating maps |
CN112434189A (en) * | 2020-12-02 | 2021-03-02 | 新华三大数据技术有限公司 | Data query method, device and equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3129974B1 (en) | Gradient adjustment for texture mapping to non-orthonormal grid | |
EP1272977B1 (en) | Shape processor | |
RU2312404C2 (en) | Hardware acceleration of graphical operations during construction of images based on pixel sub-components | |
CN100342403C (en) | Method and apparatus for generating shadow effect using shadow space | |
DE69602728T2 (en) | DEVICE FOR IMAGE MANIPULATION AND GENERATION | |
EP1157538B1 (en) | Methods and apparatus for enhancing the resolution of images to be rendered on patterned display devices | |
EP1958162B1 (en) | Vector graphics anti-aliasing | |
US20060170703A1 (en) | Color compression using an edge data bitmask in a multi-sample anti-aliasing scheme | |
WO2006080115A1 (en) | Drawing method, image generating device, and electronic information apparatus | |
US7176933B2 (en) | Texture based method and system for the anti-aliasing of lines and characters | |
WO2008036936A2 (en) | Sampling methods suited for graphics hardware acceleration | |
CN109064483B (en) | Picture anti-aliasing method and device for LCD screen, single chip microcomputer and storage medium | |
CN111145286A (en) | Point nine picture mapping drawing method for edge calculation scene based on GPU | |
US6597365B1 (en) | Indicating device with and without antialiasing | |
US5287442A (en) | Serpentine rendering of antialiased vectors in a computer graphics system | |
CN1809840A (en) | Method and system for supersampling rasterization of image data | |
US6480201B1 (en) | Alpha regions | |
US7940283B2 (en) | Method and apparatus for pixel sampling | |
CN1555027A (en) | New method for displaying figure on computer screen | |
EP1092217B1 (en) | Method of and system for detecting and rendering of graphic elements | |
KR20050088191A (en) | Low-cost supersampling rasterization | |
US6529196B1 (en) | Efficient stroking of vectors with arbitrary endpoints | |
JP3493745B2 (en) | Drawing device | |
JP2004078994A (en) | Drawing method | |
AU2014277651A1 (en) | Generating and rendering an anti-aliased page representation |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |