resvg_get_image_bbox method

bool resvg_get_image_bbox(
  1. Pointer<resvg_render_tree> tree,
  2. Pointer<resvg_rect> bbox
)

@brief Returns an image bounding box.

Can be smaller or bigger than a viewbox.

@param tree Render tree. @param bbox Image's bounding box. @return false if an image has no elements.

Implementation

bool resvg_get_image_bbox(
  ffi.Pointer<resvg_render_tree> tree,
  ffi.Pointer<resvg_rect> bbox,
) {
  return _resvg_get_image_bbox(
    tree,
    bbox,
  );
}