Function mupdf_sys::fz_new_bitmap_from_pixmap_band
source · pub unsafe extern "C" fn fz_new_bitmap_from_pixmap_band(
ctx: *mut fz_context,
pix: *mut fz_pixmap,
ht: *mut fz_halftone,
band_start: c_int
) -> *mut fz_bitmap
Expand description
Make a bitmap from a pixmap and a halftone, allowing for the position of the pixmap within an overall banded rendering.
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.
band_start: Vertical offset within the overall banded rendering (in pixels)
Returns the resultant bitmap. Throws exceptions in the case of failure to allocate.