Function resvg::resvg_render_node

source ·
#[no_mangle]
pub extern "C" fn resvg_render_node(
    tree: *const resvg_render_tree,
    id: *const c_char,
    fit_to: resvg_fit_to,
    transform: resvg_transform,
    width: u32,
    height: u32,
    pixmap: *mut c_char
) -> bool
Expand description

@brief Renders a Node by ID onto the image.

@param tree A render tree. @param id Node’s ID. Must not be NULL. @param fit_to Specifies into which region the image should be fit. @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.