Unlock instant, AI-driven research and patent intelligence for your innovation.

Drawing method and device

A drawing method and graphics technology, applied in the field of drawing, can solve the problems of shortening the drawing time, improper value selection, unguaranteed graphics accuracy, etc., and achieve the effect of shortening the drawing time and reducing the number of drawings.

Active Publication Date: 2012-04-04
HUAWEI TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The above-mentioned point-to-line method reduces the number of points connecting two points by filtering some points, thereby shortening the drawing time to a certain extent; however, when the number of points to be drawn is relatively small, and the selected N When the value is incorrect, the accuracy of the drawn graphics is often not guaranteed

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
  • Drawing method and device
  • Drawing method and device
  • Drawing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0045] An embodiment of the present invention provides a drawing method, such as figure 1 As shown, the method includes:

[0046] 101. Convert all the original data points included in the graphics to be drawn into corresponding screen pixel points, and each screen pixel point corresponds to its respective screen pixel column and screen pixel row.

[0047] Wherein, the conversion of all the original data points contained in the graph to be drawn into the corresponding screen pixel points may adopt any method in the prior art, which is not limited in the embodiment of the present invention; for example, it will be necessary to draw The following methods can be used to convert all the original data points contained in the graphics into corresponding screen pixels, which include:

[0048] From all the original data points contained in the graph that needs to be drawn i (x i ,y i ) to obtain the ordinate value y of the original data point with the smallest ordinate min and the...

Embodiment 2

[0101] An embodiment of the present invention provides a drawing method, such as Figure 6 As shown, the method includes:

[0102] 401. Convert all the original data points included in the graphics to be drawn into corresponding screen pixel points, and each screen pixel point corresponds to a respective screen pixel column and screen pixel row.

[0103] Among them, the conversion of all the original data points contained in the graphics to be drawn into corresponding screen pixels can be referred to figure 1 The corresponding description in step 101 in , will not be repeated here in this embodiment of the present invention.

[0104] 402. Select four screen pixel points from each screen pixel row, and the four screen pixel points are respectively the first screen pixel point and the abscissa point corresponding to the original data point with the smallest abscissa among the original data points before the coordinate conversion The second screen pixel corresponding to the lar...

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 embodiment of the invention discloses a drawing method and a drawing device, which relate to the drawing field and can ensure the drawing accuracy at the same time of shortening the drawing time. The method comprises the following steps of: converting all original data points contained in a graph to be drawn into corresponding screen pixel points; selecting four screen pixel points from each screen pixel column or each screen pixel row, wherein the four screen pixel points comprise a first screen pixel point corresponding to the original data point with minimum abscissa in the original data points before converting, a second screen pixel point corresponding to the original data point with maximum abscissa, a third screen pixel point corresponding to the original data point with minimum ordinate and a fourth screen pixel point corresponding to the original data point with maximum ordinate; and sequentially connecting the selected screen pixel points in a predetermined order, and connecting the adjacent screen pixel rows or columns through the preset points to obtain the graph to be drawn. The embodiment of the invention improves the drawing efficiency on the premise of ensuringthe drawing accuracy.

Description

technical field [0001] The invention relates to the field of drawing, in particular to a drawing method and device. Background technique [0002] Point-to-line drawing is a drawing method that connects two adjacent (absolutely closest) points in turn to draw a predetermined graphic; the current drawing method in the computer is: first convert all the points that need to be connected to pixels on the screen points, and then use the function provided by the computer to draw a line between two points to connect two adjacent points in turn to obtain a predetermined graph. But when there are a lot of points to be connected, for example, when drawing a graph containing 10 million points, on a computer with a CPU of 2GHz, use the function of drawing a line between two points provided by the computer to connect the 10 million points. The total time spent is about 60 seconds, and as the number of drawing points increases, the drawing time also increases proportionally, making the dr...

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 Patents(China)
IPC IPC(8): G06T11/20G06F3/14
Inventor 樊斌
Owner HUAWEI TECH CO LTD