A method and device for generating multi-level vector graphics
A vector graphics, multi-level technology, applied in the image processing field of vector graphics, can solve the problems that cannot be realized, affect the coloring effect, and the path is broken into two parts, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0066] refer to Figure 5a , according to one embodiment of the present invention, the method for generating multi-level vector graphics includes:
[0067] 1. Determine the connected domain (that is, the connected coloring area) according to the drawn area.
[0068] by Figure 6 Take the vector diagram shown as an example, detect each pixel on the canvas, and get the following Figure 7 The image shown is connected domain.
[0069] 2. Determine the boundary points of the connected domain.
[0070] When considering which method to use to determine the boundary points of the connected domain, the inventor believes that an eight-neighborhood boundary tracking algorithm can be used in order to be able to process images with arbitrary topological structures. This is because the eight-neighborhood boundary tracking algorithm is processed for each pixel, so it is not limited by topology. The eight-neighborhood boundary tracking algorithm has the advantages of simplicity and intu...
Embodiment 2
[0099] The above-mentioned embodiment has specifically introduced the method for drawing the vector diagram of the present invention, and the method for erasing the vector diagram drawn according to Embodiment 1 is introduced below, including:
[0100] 101. Record the path traveled by the eraser when erasing, and store the color value of the connected domain formed by the path as a specified value, such as no color;
[0101] 201. Subtract the pixels of the connected region formed by the eraser from the pixels of the existing connected region in the layer of the vector diagram;
[0102] 301. Update the connected domain, and store the outline and attributes of the connected domain again.
Embodiment 3
[0104] According to another embodiment of the present invention, a method for erasing a vector image includes:
[0105] 1' record the path traveled by the eraser when erasing, and store the color value of the connected domain formed by the path as a specified value, such as no color;
[0106] 2' According to the layer where the erasing action is performed, determine the outline of the connected domain;
[0107] 3' Restore the part within the contour range of the connected domain into pixels, and subtract the connected area formed by the eraser from the recovered pixels.
[0108] In the present invention, because erasing and drawing adopt similar processing methods. The area formed by erasing can be regarded as forming a connected domain, and the erasing process can be completed by setting the color of the pixels in the connected domain to the color of the canvas. In the above method, when the connected domain of the erased area is obtained, it is detected pixel by pixel, so ...
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