fz_band_writer *fz_new_pam_band_writer(fz_context *ctx, fz_output *out) { fz_band_writer *writer = fz_new_band_writer(ctx, fz_band_writer, out); writer->header = pam_write_header; writer->band = pam_write_band; return writer; }
fz_band_writer *fz_new_ps_band_writer(fz_context *ctx, fz_output *out) { fz_band_writer *writer = fz_new_band_writer(ctx, fz_band_writer, out); writer->header = ps_write_header; writer->band = ps_write_band; writer->trailer = ps_write_trailer; writer->drop = ps_drop_band_writer; return writer; }
fz_band_writer *fz_new_pwg_band_writer(fz_context *ctx, fz_output *out, const fz_pwg_options *pwg) { pwg_band_writer *writer = fz_new_band_writer(ctx, pwg_band_writer, out); writer->super.header = pwg_write_header; writer->super.band = pwg_write_band; if (pwg) writer->pwg = *pwg; else memset(&writer->pwg, 0, sizeof(writer->pwg)); return &writer->super; }