::pix::svgTop, Main, Index
Load, parse, render SVG.
CommandsTop, Main, Index
destroy [::pix::svg]Top, Main, Index
Destroy current svg or all svgs if special word all is specified.
destroy value
Parameters
value | svg::parse or string. |
Return value
Nothing.
newImage [::pix::svg]Top, Main, Index
Render SVG and return the image.
newImage svg
Parameters
svg | svg::parse |
Return value
A new img object.
parse [::pix::svg]Top, Main, Index
Parse SVG XML. Defaults to the SVG's view box size.
parse svg ?size? ?opts?
Parameters
svg | string data |
size | list width,height Optional, default SVGviewbox. |
opts | dict options (if compiled with resvg lib) Optional, default "". |
Description
resvg dictionary options. The options are:
| dpi | Sets the target DPI. |
| mtx | The transformation matrix (matrix3x3) to apply to the SVG. |
| styleSheet | The style sheet to use. |
| serifFontFamily | Sets the serif font family. |
| sansSerifFontFamily | Sets the sans-serif font family. |
| cursiveFontFamily | Sets the cursive font family. |
| fantasyFontFamily | Sets the fantasy font family. |
| monospaceFontFamily | Sets the monospace font family. |
| languages | Sets the list of languages. |
| shapeRenderingMode | Sets the default shape rendering method. |
| textRenderingMode | Sets the default text rendering method. |
| imageRenderingMode | Sets the default image rendering method. |
| fontFamily | Sets the default font family. |
| loadFontFile | Loads a font file into the internal fonts database. |
| fontSize | Sets the default font size. |
| loadSystemFonts | Loads system fonts into the internal fonts database. |
Return value
A new svg object.