DynaPDF Manual - Page 579

Previous Page 578   Index   Next Page 580

Function Reference
Page 579 of 770
ReadImageResolution
Syntax:
LBOOL pdfReadImageResolution(
const PPDF* IPDF,
// Instance pointer
const char* FileName, // File path to image
UI32 Index,
// Image index of multi-page image
UI32 ADDR ResX,
// Horizontal resolution
UI32 ADDR ResY)
// Vertical resolution
The function retrieves the horizontal and vertical resolution of an image file. The image resolution is
a user defined value that can be stored in certain image formats such as Bitmap or TIFF.
The function sets the variables ResX and ResY to zero if the image format does not support a
resolution record or if no values are stored in the image file, the image resolution is then 72 DPI.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
ReadImageResolutionEx
Syntax:
LBOOL pdfReadImageResolutionEx(
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 ResX,
// Horizontal resolution
UI32 ADDR ResY)
// Vertical resolution
The function retrieves the horizontal and vertical resolution of an image file in the same way as
ReadImageResolution() but accepts an image buffer as input. The image resolution is a user defined
value that can be stored in certain image formats such as Bitmap or TIFF.
The function sets the variables ResX and ResY to zero if the image format does not support a
resolution record or if no values are stored in the image file, the image resolution is then 72 DPI.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
 

Previous topic: ReadImageFormatEx, ReadImageFormatFromBuffer

Next topic: Rectangle, Redraw (Rendering Engine)