Function mupdf_sys::fz_new_icc_colorspace[][src]

pub unsafe extern "C" fn fz_new_icc_colorspace(
    ctx: *mut fz_context,
    type_: fz_colorspace_type,
    flags: c_int,
    name: *const c_char,
    buf: *mut fz_buffer
) -> *mut fz_colorspace

Create a colorspace from an ICC profile supplied in buf.

Limited checking is done to ensure that the colorspace type is appropriate for the supplied ICC profile.

An additional reference is taken to buf, which will be dropped on destruction. Ownership is NOT passed in.

The returned reference should be dropped when it is finished with.

Colorspaces are immutable once created.