14.4 PAM
Related to PNM we have PAM. The pixmap formats here can be greyscale, RGB or
CMYK, with or without alpha (and the alpha plane is written to the file). The
TUPLTYPE in the image header reflects the color and alpha configuration, though
not all readers support all variants.
/* fz_save_pixmap_as_pam: Save a pixmap as a PAM image file. */ void fz_save_pixmap_as_pam(fz_context *ctx, fz_pixmap *pixmap, char *filename); void fz_write_pixmap_as_pam(fz_context *ctx, fz_output *out, fz_pixmap *pixmap); fz_band_writer *fz_new_pam_band_writer(fz_context *ctx, fz_output *out);