DynaPDF Manual - Page 430

Previous Page 429   Index   Next Page 431

Function Reference
Page 430 of 839
GetImageObjCount
Syntax:
SI32 pdfGetImageObjCount(
const PPDF* IPDF) // PDF Instance
The function returns the number of image objects which were loaded with DynaPDF functions or
imported from external PDF files. The images can be accessed with GetImageObj().
Return values:
The return value is the number of image objects. This function cannot fail.
GetImageObjEx
Syntax:
LBOOL pdfGetImageObjEx(
const PPDF* IPDF,
// Instance pointer
const void* ImagePtr,
// Image pointer
TParseFlags Flags,
// See description at GetImageObj()
struct TPDFImage* Image) // Structure to be filled with data
The function can be used to decompress an image mask or soft mask that is associated with a base
image that was returned by ParseContent() or GetImageObj().
The function allocates memory that should be released with FreeImageObjEx() when finish.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
GetImageWidth
Syntax:
SI32 pdfGetImageWidth(
const PPDF* IPDF, // Instance pointer
UI32 AHandle)
// Image handle
The function returns the width of an image in pixel. This value is may be smaller than the width of
the original image, if it was downscaled by DynaPDF.
Return values:
If the function succeeds the return value is the width of the image in pixel. If the function fails the
return value is a negative error code.
 

Previous topic: GetImageHeight, GetImageObj

Next topic: GetImportDataAction, GetImportFlags, GetImportFlags2, GetInBBox