SVG vector diagram display method and device, equipment and storage medium
The invention provides an SVG vector diagram display method and device, equipment and a storage medium, and relates to the technical field of graphic display. The method comprises the steps that before an SVG vector diagram is displayed, an SVG file corresponding to the SVG vector diagram is acquire...
Gespeichert in:
Hauptverfasser: | , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention provides an SVG vector diagram display method and device, equipment and a storage medium, and relates to the technical field of graphic display. The method comprises the steps that before an SVG vector diagram is displayed, an SVG file corresponding to the SVG vector diagram is acquired; the SVG file is converted into mesh data, and the mesh data obtained through conversion is stored according to a target data format; wherein the target data format is a data format which can be directly read by the game engine; and when the SVG vector diagram needs to be displayed, reading and loading the mesh data stored according to the target data format so as to display the SVG vector diagram. According to the method, the display delay of the SVG vector diagram can be obviously reduced.
本发明提供了一种SVG矢量图展现方法、装置、设备及存储介质,涉及图形显示技术领域。其中,该方法包括:在展现SVG矢量图之前,获取SVG矢量图对应的SVG文件;将SVG文件转换为网格mesh数据,并将转换得到的mesh数据按照目标数据格式进行存储;其中,目标数据格式为游戏引擎能够直接读取的数据格式;当需要展现SVG矢量图时,读取并加载按照目标数据格式存储的mesh数据,以展现SVG矢量图。本发明可以明显降低SVG矢量图的展现延时。 |
---|