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

DynaPDF Manual - Page 384

Previous Page 383   Index   Next Page 385

Function Reference
Page 384 of 750
GetImageCount
Syntax:
SI32 pdfGetImageCount(
const PPDF* IPDF,
// Instance pointer
const char* FileName) // Image file
The function returns the number of images contained in a multi-page image. At time of publication
TIFF images are supported only.
Return values:
If the function succeeds the return value is the number of images inside the image file. If the function
fails the return value is a negative error code.
GetImageCountEx
Syntax:
SI32 pdfGetImageCountEx(
const PPDF* IPDF,
// Instance pointer
const void* Buffer, // Pointer to file buffer
UI32 BufSize)
// Buffer size
The function determines the number of images in a multi-page image in the same way as
GetImageCount(), but accepts a file buffer as input. At time of publication TIFF images are
supported only.
GetImageHeight
Syntax:
SI32 pdfGetImageHeight(
const PPDF* IPDF, // Instance pointer
UI32 AHandle)
// Image handle
The function returns the height of an image in pixel. This value is may be smaller than the height of
the original image, if it was downscaled by DynaPDF.
Return values:
If the function succeeds the return value is the height of the image in pixel. If the function fails the
return value is a negative error code.
GetImageObj
Syntax:
LBOOL pdfGetImageObj(
const PPDF* IPDF,
// Instance pointer
UI32 Handle,
// Image handle
TParseFlags Flags, // See below
TPDFImage* Image)
// Structure to be filled with data
 

Previous topic: GetImageBuffer

Next topic: GetImageObjEx