Wide line drawing method and device
A drawing device and wide-line technology, applied in the direction of drawing from basic elements, can solve problems such as performance degradation, large data volume, and slow speed of drawing wide lines, so as to reduce data volume, improve speed and fluency, and avoid repeated drawing Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0021] see figure 1 As shown, a wide line drawing method includes the following steps:
[0022] Step S101, acquiring the coordinates of the first drawing point, and drawing a circular wide line according to the coordinates and line width of the first drawing point. For example, after acquiring the coordinates of the Nth drawing point, the circular wide line Cn can be drawn with the coordinates of the Nth drawing point as the center of the circle and the line width as the diameter. The line width is the number of pixels included in the width (LineWidth) of the currently drawn wide line.
[0023] Step S102, acquiring the coordinates of the second drawing point, and calculating the parameter information of the previous rectangle according to the coordinates of the first drawing point, the coordinates of the second drawing point and the line width. For example, after obtaining the coordinates of the N+1th drawing point, the values of the length and width of the rectangle Ln an...
Embodiment 2
[0047] refer to figure 2 As shown, the wide line drawing method of the present invention is illustrated by taking three adjacent drawing points sampled by the mouse as an example below: P1, P2, and P3 represent three adjacent drawing points sampled by the mouse to the line , assuming that P1 is the first plot point, followed by P2, and then P3.
[0048] Get the coordinates of the first drawing point P1 of the current drawn wide line: draw the circle C1 with the coordinates of P1 as the center and LineWidth as the diameter. Get the coordinates of the second plot point P2. Calculate the distance d1 between the first drawing point P1 and the second drawing point P2, and construct a rectangle L1 with d1 as the width and LineWidth as the length. If the rectangle L1 is contained by the circle C1, the rectangle may not be drawn, that is, the rectangle may not be displayed; otherwise, the rectangle may be drawn, for example, filled with a polygon filling method, so that it is displ...
Embodiment 3
[0059] Corresponding to the wide line drawing method in the first embodiment above, this embodiment also provides a wide line drawing device, such as image 3 shown, including:
[0060] The first drawing module 101 is configured to obtain the coordinates of the first drawing point, and draw a circular wide line according to the coordinates and line width of the first drawing point;
[0061] The first calculation module 102 is configured to obtain the coordinates of the second drawing point, and calculate the parameter information of the previous rectangle according to the coordinates of the first drawing point, the coordinates of the second drawing point and the line width;
[0062] The second drawing module 103 is configured to draw corresponding wide lines according to the parameter information of the circular wide lines and the previous rectangle.
[0063] As a better embodiment, the wide line drawing device may include:
[0064] The second calculation module is used to o...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com