Function mupdf_sys::fz_clear_pixmap_with_value [−][src]
pub unsafe extern "C" fn fz_clear_pixmap_with_value(
ctx: *mut fz_context,
pix: *mut fz_pixmap,
value: c_int
)
Expand description
Clears a pixmap with the given value.
pix: The pixmap to clear.
value: Values in the range 0 to 255 are valid. Each component sample for each pixel in the pixmap will be set to this value, while alpha will always be set to 255 (non-transparent).
This function is horrible, and should be removed from the API and replaced with a less magic one.