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

DynaPDF Manual - Page 563

Previous Page 562   Index   Next Page 564

Function Reference
Page 563 of 750
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.
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
 

Previous topic: ReadImageFormatEx

Next topic: Redraw (Rendering Engine)