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

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

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

AI Technical Summary

Problems solved by technology

[0004] However, SVG technology only supports the display of two-dimensional vector graphics, and does not support the display of three-dimensional vector graphics

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
  • A method and terminal for displaying vector graphics
  • A method and terminal for displaying vector graphics
  • A method and terminal for displaying vector graphics

Examples

Experimental program
Comparison scheme
Effect test

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 ...

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 method and a terminal for displaying vector graphics, wherein the method comprises the following steps: reading a SVG (scalable vector graphics) file; analyzing the SVG file, and obtaining a three-dimensional tag which displays the three-dimensional vector graphics as well as a sub-tag of the three-dimensional tag; extracting three-dimensional parameters which describe the attributes of a three-dimensional space plane from the three-dimensional vector graphics, and extracting two-dimensional parameters which describe the attributes of the attributes of two-dimensional vector graphics. The parameters which describe the thickness attributes of the graph are added in the two-dimensional parameters, and the three-dimensional parameters include an initial position of the three-dimensional space plane in the three-dimensional space, a size of the three-dimensional space, and respective included angles of the three-dimensional space plane with an X axis and an Y axis; and transmitting the extracted parameters to a graphic drawing interface to facilitate the graphic drawing interface to draw the two-dimensional vector graphics described by the two-dimensional parameters on the three-dimensional space plane described by the three-dimensional parameters according to the received parameters, and display the obtained three-dimensional vector graphics. According to the embodiment of the invention, the displaying of the three-dimensional vector graphics can be supported.

Description

technical field [0001] The invention relates to the technical field of wireless communication, in particular to a method and terminal for displaying vector graphics. Background technique [0002] SVG (Scalable Vector Graphics, Scalable Vector Graphics) is a graphic format based on XML (Extensible Markup) language to describe two-dimensional vector images. The SVG standard is formulated by W3C and is an open international standard. Labels for some basic graphics are defined in the SVG standard, such as a rectangle label for displaying a rectangle or a circle label for displaying a circle. [0003] Currently, some browsers and graphics editing software support SVG technology, which can display two-dimensional vector graphics. In addition, since the SVG technology is based on XML, dynamic interactive images can be produced. As an application of SVG technology, the application on wireless handheld devices such as mobile phones is also one of the most important applications in...

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): G06T17/00
Inventor 王菲郑昕
Owner HUAWEI TECH CO LTD