Function mupdf_sys::fz_write_header[][src]

pub unsafe extern "C" fn fz_write_header(
    ctx: *mut fz_context,
    writer: *mut fz_band_writer,
    w: c_int,
    h: c_int,
    n: c_int,
    alpha: c_int,
    xres: c_int,
    yres: c_int,
    pagenum: c_int,
    cs: *mut fz_colorspace,
    seps: *mut fz_separations
)

Cause a band writer to write the header for a banded image with the given properties/dimensions etc. This also configures the bandwriter for the format of the data to be passed in future calls.

w, h: Width and Height of the entire page.

n: Number of components (including spots and alphas).

alpha: Number of alpha components.

xres, yres: X and Y resolutions in dpi.

cs: Colorspace (NULL for bitmaps)

seps: Separation details (or NULL).