PNM

The simplest output format supported is that of PNM. The pixmap can be greyscale, or RGB, with or without alpha (though the alpha plane is always ignored on writing).


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