resvg_render_node method
bool
resvg_render_node(
- Pointer<
resvg_render_tree> tree, - Pointer<
Char> id, - resvg_transform transform,
- int width,
- int height,
- Pointer<
Char> pixmap,
@brief Renders a Node by ID onto the image.
@param tree A render tree.
@param id Node's ID. Must not be NULL.
@param transform A root SVG transform. Can be used to position SVG inside the pixmap
.
@param width Pixmap width.
@param height Pixmap height.
@param pixmap Pixmap data. Should have widthheight4 size and contain
premultiplied RGBA8888 pixels.
@return false
when id
is not a non-empty UTF-8 string.
@return false
when the selected id
is not present.
@return false
when an element has a zero bbox.
Implementation
bool resvg_render_node(
ffi.Pointer<resvg_render_tree> tree,
ffi.Pointer<ffi.Char> id,
resvg_transform transform,
int width,
int height,
ffi.Pointer<ffi.Char> pixmap,
) {
return _resvg_render_node(
tree,
id,
transform,
width,
height,
pixmap,
);
}