Decoded

The next most common type of image is based upon a decoded fz_pixmap. These are generally only used if the pixmap takes less storage than the compressed data would.


\begin{lstlisting}
/*
fz_pixmap_image_tile: Retried the underlying fz_pixmap
f...
... *fz_pixmap_image_tile(fz_context *ctx, fz_pixmap_image *cimg);
\end{lstlisting}

The easiest way to tell if an image is a decoded image is to request its underlying tile. If it returns NULL, you know it is not this sort of image.