Function resvg::render

source · []
pub fn render(
    tree: &Tree,
    fit_to: FitTo,
    transform: Transform,
    pixmap: PixmapMut<'_>
) -> Option<()>
Expand description

Renders an SVG to pixmap.

If fit_to size differs from tree.svg_node().size, SVG would be scaled accordingly.

transform will be used as a root transform. Can be used to position SVG inside the pixmap.