[−][src]Function mupdf_sys::fz_new_pixmap_from_pixmap
pub unsafe extern "C" fn fz_new_pixmap_from_pixmap(
ctx: *mut fz_context,
pixmap: *mut fz_pixmap,
rect: *const fz_irect
) -> *mut fz_pixmap
Create a new pixmap that represents a subarea of the specified pixmap. A reference is taken to this pixmap that will be dropped on destruction.
The supplied rectangle must be wholly contained within the original pixmap.
Returns a pointer to the new pixmap. Throws exception on failure to allocate.