Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for efficiently drawing and rendering basic graphic

A basic graphics, high-efficiency technology, applied in the direction of program control devices, drawing from basic elements, etc., can solve the problems of high complexity of use, insufficient encapsulation, and increase the complexity of software development, to reduce technical requirements, high efficiency, good combination effect

Inactive Publication Date: 2010-11-10
GUANGDONG VTRON TECH CO LTD
View PDF2 Cites 24 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This is because the graphics drawn by GDI, especially GDIPlus, have high smoothness, rich graphics function interfaces, powerful functions, and good encapsulation, which is very convenient for the realization of graphics drawing functions. However, OpenGL and DirectX have insufficient encapsulation of algorithms and do not provide rich graphics. Interface, so the use complexity is correspondingly high
For example, for the drawing function of ellipse graphics, GDIPlus only needs to call a function interface DrawEllipse to realize it. Since OpenGL and DirectX have no ready-made function interface calls, software developers are required to realize their drawing functions according to the ellipse algorithm. This is undoubtedly Increased software development complexity

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for efficiently drawing and rendering basic graphic
  • Method and device for efficiently drawing and rendering basic graphic
  • Method and device for efficiently drawing and rendering basic graphic

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] Various specific implementations of the method and device for drawing graphics with high efficiency in the present invention will be described in detail below.

[0022] see figure 1 Shown is a schematic flow chart of the method for efficiently drawing and rendering basic graphics of the present invention, which includes steps:

[0023] Step S101: use OpenGL or DirectX technology to create two textures, which are respectively recorded as memory texture S and video memory texture D, wherein the memory texture S is mainly used to realize the graphics drawing function, and the video memory texture is mainly used to realize the graphics rendering function, go to step S102 ;

[0024] Step S102: Obtain the data buffer of the memory texture S, and then enter step S103;

[0025] Step S103: Create a DC (DeviceContext, device context) related to the data buffer of the memory texture S. The way to create the DC can be the existing way in the prior art. The device context DC creat...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a method and a device for efficiently drawing and rendering a basic graphic, which comprises the following steps of: creating a memory texture and a video texture by using OpenGL or DirecX to obtain a data buffer in the first layer of memory texture, and creating a device context (DC) related to the data buffer; creating GDI (Graphics Device Interface) or GDIPlus drawing object by using the DC, and drawing the basic graphic by using the drawing object; and updating the data in the memory texture to the video texture, rendering the video texture by using OpenGL or DirecX, and displaying the data in the video texture. The scheme of the invention not only maintains the advantage of high graphic rendering efficiency of OpenGL and DirecX, but also favorably utilizes the traditional algorithm and the function packaging of GDI and GDIPlus to favorably realize better combination of the existing algorithm and the function packaging, simply and conveniently realizes thedrawing function of the basic graphic, and lowers the technical requirements of OpenGL and DirecX for developers.

Description

technical field [0001] The invention relates to the technical field of drawing and rendering of computer graphics, in particular to a method for drawing and rendering basic graphics with high efficiency, and a device for drawing and rendering basic graphics with high efficiency. Background technique [0002] In today's computer graphics field, the drawing and rendering of basic graphics is a common function. The commonly used implementation technologies are GDI, GDIPlus, OpenGL and DirectX. In terms of graphics rendering efficiency, GDI is slightly higher than GDIPlus, but the difference is not large; similarly, the rendering efficiency of OpenGL and DirectX is also comparable. But as we all know, OpenGL and DirectX make full use of the acceleration function of the hardware, especially the graphics card, with strong computing power and low CPU usage, and are much more efficient in graphics rendering than GDI and GDIPlus. [0003] In specific software development, software ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/44G06T11/20
Inventor 黄宝华胡建华杨发生
Owner GUANGDONG VTRON TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products