Method and device for drawing geometric figures

A technology of geometric figures and graphics, applied in the field of computer graphics, can solve the problems of poor performance utilization rate, complicated use and limited support of graphics cards, and achieve the effect of improving user experience, simple use and strong support.

Inactive Publication Date: 2010-06-02
GUANGDONG VTRON TECH CO LTD
View PDF0 Cites 32 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] In the current graphics drawing technology, it mainly includes GDI, OpenGL and DirectX. Among them, GDI is a graphics device interface, which is a general Windows system graphics programming interface developed by MS. It has strong functions and covers a wide range. In general programming It will be used, but GDI does not support hardware acceleration, and the utilization rate of the performance of the graphics card is poor, so it becomes very inefficient when drawing a large number of geometric figures with GDI, which cannot satisfy the demonstration effect of multimedia software. When developing multimedia, its display performance will be very poor, especially when drawing a large number of graphics; OpenGL is a set of three-dimensional graphics software package developed by SGI. The drawing effect is extremely high. Although it is powerful and supports hardware acceleration, it is difficult to maintain due to the complexity of use, and Windows has limited support for it, so the programmability is poor, and it is time-consuming to develop, and Windows supports it only at 1.1. version; and DirectX is

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 drawing geometric figures
  • Method and device for drawing geometric figures
  • Method and device for drawing geometric figures

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] The solutions of the present invention are described in detail below in the form of specific examples. It should be noted that, in the following descriptions of the specific examples of drawing, the coordinate system used in the computer is used as an example for illustration, and the x value gradually increases with the arrow extension direction of the X axis, and the y value increases with the The arrow extending direction of the Y axis gradually decreases.

[0039] The method for drawing geometric figures of the present invention mainly utilizes the function interface for drawing triangles in DirectX to realize the drawing of geometric figures. see figure 1 As shown, it is a schematic flow chart of the method for drawing geometric figures of the present invention. As shown in the figure, the method for drawing geometric figures of the present invention includes steps:

[0040] Step S101: pre-setting the preset graphic type and line width;

[0041] Step S102: ident...

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 method and device for drawing geometric figures. The method comprises the following steps of: on the basis of forming a line segment by two triangles, using triangles to represent a preset figure type to be drawn; after recognizing a start point and a finish point clicked by a mouse, calculating to determine each triangle for forming the preset figure type according to the type, line width, start point position coordinates and finish point position coordinates of the preset figure; and drawing each triangle by a triangle drawing function interface in Direct X which has high support for Windows and simple use and supports hardware acceleration. Especially after each geometric figure is represented by triangles by fully making of a display card, a plurality of advantages of the Direct X can be effectively utilized, and therefore the scheme of the invention can effectively enhance the efficiency of drawing two-dimensional figures.

Description

technical field [0001] The invention relates to the technical field of computer graphics, in particular to a method for drawing geometric figures and a device for drawing geometric figures. Background technique [0002] In the current graphics drawing technology, it mainly includes GDI, OpenGL and DirectX. Among them, GDI is a graphics device interface, which is a general Windows system graphics programming interface developed by MS. It has strong functions and covers a wide range. In general programming It will be used, but GDI does not support hardware acceleration, and the utilization rate of the performance of the graphics card is poor, so it becomes very inefficient when drawing a large number of geometric figures with GDI, which cannot satisfy the demonstration effect of multimedia software. When developing multimedia, its display performance will be very poor, especially when drawing a large number of graphics; OpenGL is a set of three-dimensional graphics software pa...

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
IPC IPC(8): G06F9/44G06T11/00
Inventor 尹显用胡建华杨发生
Owner GUANGDONG VTRON TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products