SVGCanvas

object SVGCanvas

Functions

Link copied to clipboard
fun make(bounds: Rect, out: WStream): Canvas
fun make(bounds: Rect, out: WStream, convertTextToPaths: Boolean, prettyXML: Boolean): Canvas

Returns a new canvas that will generate SVG commands from its draw calls, and send them to the provided stream. Ownership of the stream is not transfered, and it must remain valid for the lifetime of the returned canvas.