Function mupdf_sys::fz_new_image_from_pixmap
source · pub unsafe extern "C" fn fz_new_image_from_pixmap(
ctx: *mut fz_context,
pixmap: *mut fz_pixmap,
mask: *mut fz_image
) -> *mut fz_image
Expand description
Create an image from the given pixmap.
pixmap: The pixmap to base the image upon. A new reference to this is taken.
mask: NULL, or another image to use as a mask for this one. A new reference is taken to this image. Supplying a masked image as a mask to another image is illegal!