摘要 |
A method and device are provided for converting or transforming a shape definition specified in a SWF file into a vector graphics shape definition. The vector graphics shape definition includes one or more vector graphics path definitions that can be used by a vector graphics API to properly render the contents of the SWF shape definition. Each vector graphics path definition is based on directed edges in the SWF shape definition having a path style, such as a line style or a fill style, in common. A vector graphics path is created by traversing undirected edges of a graph represented by a graph representation, and by removing an undirected edge, after the undirected edge has been traversed, from each edge set to which the traversed edge belongs. Such an approach can leverage a vector graphics API that can be hardware accelerated to efficiently render the shape data.
|