[−][src]Function mupdf_sys::fz_new_bitmap_from_pixmap
pub unsafe extern "C" fn fz_new_bitmap_from_pixmap(
ctx: *mut fz_context,
pix: *mut fz_pixmap,
ht: *mut fz_halftone
) -> *mut fz_bitmap
Make a bitmap from a pixmap and a halftone.
pix: The pixmap to generate from. Currently must be a single color component with no alpha.
ht: The halftone to use. NULL implies the default halftone.
Returns the resultant bitmap. Throws exceptions in the case of failure to allocate.