Function resvg::render_node

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

Renders an SVG node to pixmap.

If fit_to differs from node.calculate_bbox(), SVG would be scaled accordingly.

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