SVGParser

class SVGParser

Deprecated

Use SVGDocument( filename )

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

All shapes are scaled by this amount. This can be more useful than scaling the parsed shapes afterwards, because circles, arcs and bezier curves will be approximated to straight line using the scaled size, not the size within the SVG document.

Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
fun parse(file: File): SVGDocument
Link copied to clipboard
fun parseFile(filename: String): SVGDocument
Link copied to clipboard
Link copied to clipboard
fun scale(scale: Double)

Set the scale to Vector2(scale,scale) This must be set before calling parse or parseFile