Function Reference
Page 633 of 839
ReadImageFormat (obsolete)
Syntax:
LBOOL pdfReadImageFormat(
const PPDF* IPDF,
// Instance pointer
const char* FileName,
// File path to image
UI32 ADDR Width,
// Width of the image in pixel
UI32 ADDR Height,
// Height of the image in pixel
SI32 ADDR BitsPerPixel,// Color depth
SI32 ADDR UseZip)
// If true, Flate compression should be used
The function retrieves the most important properties of an image file. All parameters of the function
must not be NULL. The function reads the image header only to improve processing speed. The
parameter UseZip determines whether Flate compression produces better compression ratios for this
image format. If the parameter BitsPerPixel is 32 the image is a CMYK image. Note that TIFF images
support color depths up to 64 bits per pixel.
Remarks:
This function is marked as obsolete, please use ReadImageFormat2() whenever possible.
ReadImageFormat2() will be renamed to ReadImageFormatFromFile() in DynaPDF 3.0.
Return values:
If the function succeeds the return value is 1 and the parameters are filled with values. If the
function fails the return value is 0.