A method and terminal for displaying vector graphics
A technology of vector graphics and graphics, applied in the field of displaying vector graphics, can solve the problem of not supporting the display of three-dimensional vector graphics
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 2
[0035] The difference between this embodiment and Embodiment 1 is that the SVG file in Embodiment 1 only supports the display of 3D vector graphics, while the SVG file in this embodiment not only supports the display of 3D vector graphics, but also supports the display of 2D vector graphics. Therefore, after parsing the SVG file to obtain tags, it is necessary to further distinguish which tags are three-dimensional tags and their sub-tags, and which tags are two-dimensional tags. see image 3 , which is a flow chart of another embodiment of a method for displaying vector graphics in the present invention, comprising the following steps:
[0036] Step 301: read the scaled vector graphics SVG file;
[0037] Step 302: Parse the SVG file to obtain each tag in the SVG;
[0038] Step 303: Determine whether the current tag is a sub-tag of the 3D tag, if yes, go to step 304, otherwise, go to step 305;
[0039]Wherein, the determining whether the current label is a sub-label of the ...
Embodiment 3
[0052] The method for displaying vector graphics will be described in detail below by taking simultaneously displaying a three-dimensional vector graphics of a cube and a two-dimensional vector graphics of a cube on a terminal as an example. see Figure 4 , which is a flow chart showing a three-dimensional vector graphics of a cube and a two-dimensional vector graphics of a cube in the present invention, specifically comprising the following steps:
[0053] Step 401: read the SVG file;
[0054] Step 402: Parse the SVG file to obtain 3 tags in the SVG file;
[0055] Since the SVG file is used to display a three-dimensional vector graphic of a cube and a two-dimensional vector graphic of a cube, it can be known that by parsing the SVG file, a three-dimensional label, a sub-label of a three-dimensional label and a two-dimensional label can be obtained. 3 tabs.
[0056] Among them, the contents of the three-dimensional label and its sub-labels are:
[0057]
[0058]
[005...
Embodiment 4
[0072] Corresponding to the above method for displaying vector graphics, an embodiment of the present invention further provides a terminal for displaying vector graphics. see Figure 5 , which is a structural diagram of an embodiment of a terminal for displaying vector graphics in the present invention, the terminal includes: a reading unit 501 , an analysis unit 502 , a parameter extraction unit 503 and a three-dimensional display unit 504 . The following further introduces its internal structure and connection relationship in combination with the working principle of the base station controller.
[0073] A reading unit 501, configured to read the scaled vector graphics SVG file;
[0074] An parsing unit 502, configured to parse the SVG file to obtain a three-dimensional tag displaying a three-dimensional vector graphic and sub-tags of the three-dimensional tag;
[0075] The parameter extraction unit 503 is configured to extract the three-dimensional parameters describing ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 