DynaPDF Manual - Page 399

Previous Page 398   Index   Next Page 400

Function Reference
Page 399 of 787
GetIconColor
Syntax:
UI32 pdfGetIconColor(
const PPDF* IPDF) // Instance pointer
The function returns the icon color used for newly created text annotations. The color value must
always be defined in DeviceRGB because normal annotations do not support the color spaces
DeviceGray or DeviceCMYK. See also SetIconColor().
GetImageBuffer
Syntax:
char* pdfGetImageBuffer(
const PPDF* IPDF,
// Instance pointer
UI32 ADDR BufSize) // Variable to get the buffer size in bytes
The function returns the buffer of an image that was created in memory by CreateImage(). The
buffer size is set to the parameter BufSize. The returned pointer is a pointer to the original buffer; it
must not be freed or changed. When the image buffer is no longer needed it must be released with
FreeImageBuffer().
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.
 

Previous topic: GetGoToRAction, GetGStateFlags, GetHideAction

Next topic: GetImageHeight, GetImageObj

Start Chat