pixie/fileformats/svg

    Dark Mode
Search:
Group by:

Load SVG files.

Consts

xmlSignature = "<?xml"
svgSignature = "<svg"

Procs

proc decodeSvg(data: string; width = 0; height = 0): Image {...}{.
    raises: [PixieError], tags: [ReadIOEffect, RootEffect, WriteIOEffect].}
Render SVG file and return the image. Defaults to the SVG's view box size.