resvg_render_node method

bool resvg_render_node(
  1. Pointer<resvg_render_tree> tree,
  2. Pointer<Char> id,
  3. resvg_transform transform,
  4. int width,
  5. int height,
  6. 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,
  );
}