resvg_parse_tree_from_file method

int resvg_parse_tree_from_file(
  1. Pointer<Char> file_path,
  2. Pointer<resvg_options> opt,
  3. Pointer<Pointer<resvg_render_tree>> tree
)

@brief Creates #resvg_render_tree from file.

.svg and .svgz files are supported.

See #resvg_is_image_empty for details.

@param file_path UTF-8 file path. @param opt Rendering options. Must not be NULL. @param tree Parsed render tree. Should be destroyed via #resvg_tree_destroy. @return #resvg_error

Implementation

int resvg_parse_tree_from_file(
  ffi.Pointer<ffi.Char> file_path,
  ffi.Pointer<resvg_options> opt,
  ffi.Pointer<ffi.Pointer<resvg_render_tree>> tree,
) {
  return _resvg_parse_tree_from_file(
    file_path,
    opt,
    tree,
  );
}