Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

DynaPDF Manual - Page 561

Previous Page 560   Index   Next Page 562

Function Reference
Page 561 of 750
ReadImageFormat (obsolete)
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.
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.

Previous topic: Visual Basic 6 interface

Next topic: ReadImageFormatEx