Function mupdf_sys::fz_new_draw_device_with_proof
source · pub unsafe extern "C" fn fz_new_draw_device_with_proof(
ctx: *mut fz_context,
transform: fz_matrix,
dest: *mut fz_pixmap,
proof_cs: *mut fz_colorspace
) -> *mut fz_device
Expand description
Create a device to draw on a pixmap.
dest: Target pixmap for the draw device. See fz_new_pixmap* for how to obtain a pixmap. The pixmap is not cleared by the draw device, see fz_clear_pixmap* for how to clear it prior to calling fz_new_draw_device. Free the device by calling fz_drop_device.
transform: Transform from user space in points to device space in pixels.
proof_cs: Intermediate color space to map though when mapping to color space defined by pixmap.