[−][src]Function mupdf_sys::fz_new_pixmap
pub unsafe extern "C" fn fz_new_pixmap(
ctx: *mut fz_context,
cs: *mut fz_colorspace,
w: c_int,
h: c_int,
seps: *mut fz_separations,
alpha: c_int
) -> *mut fz_pixmap
Create a new pixmap, with its origin at (0,0)
cs: The colorspace to use for the pixmap, or NULL for an alpha plane/mask.
w: The width of the pixmap (in pixels)
h: The height of the pixmap (in pixels)
seps: Details of separations.
alpha: 0 for no alpha, 1 for alpha.
Returns a pointer to the new pixmap. Throws exception on failure to allocate.