TGA

The TGA writer can accept pixmaps in greyscale, RGB and BGR formats, with and without alpha.


\begin{lstlisting}
/*
fz_save_pixmap_as_tga: Save a pixmap as a TGA image file....
...w_tga_band_writer(fz_context *ctx, fz_output *out, int is_bgr);
\end{lstlisting}