24.1 Compressed Images

The fz_compressed_image structure is a specialisation of fz_image, that holds the source data for an image in a fz_compressed_buffer. This is the usual form for images created from PDF and XPS files.

The data for a compressed image can be retrieved by calling:

fz_compressed_buffer *fz_compressed_image_buffer(fz_context *ctx, fz_image *image);

If the supplied fz_image is not a fz_compressed_image then it will return NULL.