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

DynaPDF Manual - Page 562

Previous Page 561   Index   Next Page 563

Function Reference
Page 562 of 750
ReadImageFormat2
Syntax:
LBOOL pdfReadImageFormat2(
const PPDF* IPDF,
// Instance pointer
const char* FileName,
// File path to image
UI32 Index,
// Image index of multi-page 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 only the image header to improve processing speed. The
parameter UseZip determines whether Flate compression produces probably better compression
results 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. The parameter Index specifies the array
index of a multi-page image that should be read in; numbering starts at 1. The parameter is ignored
for non-multi-page image formats.
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.
ReadImageFormatEx
Syntax:
LBOOL pdfReadImageFormatEx(
const PPDF* IPDF,
// Instance pointer
void* hBitmap,
// HBITMAP handle
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 a memory bitmap. All parameters of the
function must not be NULL. The function uses the GDI function GetObject() to retrieve the bitmap
parameters. This function is not available on Windows only.
Remarks:
This function is not thread-safe; it must be synchronized in multi-threaded applications.
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: ReadImageFormat (obsolete)

Next topic: ReadImageResolutionEx