PBM

Bitmaps suitable for output to the PBM format are generated by drawing to greyscale contone (with no alpha), and then halftoning down to monochrome.


\begin{lstlisting}
/*
fz_save_bitmap_as_pbm: Save a bitmap as a PBM image file....
...riter *fz_new_pbm_band_writer(fz_context *ctx, fz_output *out);
\end{lstlisting}