Function mupdf_sys::fz_new_bitmap
source · pub unsafe extern "C" fn fz_new_bitmap(
ctx: *mut fz_context,
w: c_int,
h: c_int,
n: c_int,
xres: c_int,
yres: c_int
) -> *mut fz_bitmap
Expand description
Create a new bitmap.
w, h: Width and Height for the bitmap
n: Number of color components (assumed to be a divisor of 8)
xres, yres: X and Y resolutions (in pixels per inch).
Returns pointer to created bitmap structure. The bitmap data is uninitialised.