pub fn render_node(
node: &Node,
transform: Transform,
pixmap: &mut PixmapMut<'_>,
) -> Option<()>
Expand description
Renders a node onto the pixmap.
transform
will be used as a root transform.
Can be used to position SVG inside the pixmap
.
The expected pixmap size can be retrieved from usvg::Node::abs_layer_bounding_box()
.
Returns None
when node
has a zero size.
The produced content is in the sRGB color space.