Xojo Conferences
MBSOct2019CologneDE
XDCMarch2020NashvilleUS

DynaPDF Manual - Page 578

Previous Page 577   Index   Next Page 579

Function Reference
Page 578 of 770
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 available on Windows only. Please consider the special treatment of 1 bit
images. See ReadImageFormat2() for further information.
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.
ReadImageFormatFromBuffer
Syntax:
LBOOL pdfReadImageFormatFromBuffer(
const PPDF* IPDF,
// Instance pointer
const void* Buffer,
// Pointer to image buffer
UI32 BufSize,
// Buffer size
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 in the same way as
ReadImageFormat2(), but accepts an image buffer as input. See ReadImageFormat2() for further
information.
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: ReadImageFormat2, 1 bit images

Next topic: ReadImageResolution, ReadImageResolutionEx