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.


\begin{lstlisting}
/*
fz_save_pixmap_as_pam: Save a pixmap as a PAM image file....
...riter *fz_new_pam_band_writer(fz_context *ctx, fz_output *out);
\end{lstlisting}