Function mupdf_sys::fz_bound_path
source · pub unsafe extern "C" fn fz_bound_path(
ctx: *mut fz_context,
path: *const fz_path,
stroke: *const fz_stroke_state,
ctm: fz_matrix
) -> fz_rect
Expand description
Return a bounding rectangle for a path.
path: The path to bound.
stroke: If NULL, the bounding rectangle given is for the filled path. If non-NULL the bounding rectangle given is for the path stroked with the given attributes.
ctm: The matrix to apply to the path during stroking.
r: Pointer to a fz_rect which will be used to hold the result.
Returns r, updated to contain the bounding rectangle.