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

DynaPDF Manual - Page 564

Previous Page 563   Index   Next Page 565

Function Reference
Page 564 of 750
// 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.
LBOOL pdfRectangle(
const PPDF* IPDF,
// Instance pointer
double PosX,
// X-Coordinate of rectangle
double PosY,
// Y-Coordinate of rectangle
double Width,
// Width of the rectangle
double Height,
// Height of the rectangle
TPathFillMode FillMode) // Fill mode
This function draws a rectangle.
If the coordinate system is bottom-up the point PosX, PosY defines the lower left corner of the
rectangle. If the coordinate system is top-down it defines the upper left corner.
The draw direction can be changed with the function SetDrawDirection().
A rectangle is a closed path that can be filled, stroked or both. It is also possible to draw a rectangle
invisible to apply the filling rules nonzero winding number or even-odd. The filling rules are
described under ClipPath(). The parameter FillMode is ignored if the rectangle is drawn inside a
clipping path. The fill modes are described under ClosePath().
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
Redraw (Rendering Engine)
void rasRedraw(
IRAS* RasPtr,
// Pointer of the rasterizer
const void* DC, // Handle of a Windows Device Context (HDC)
SI32 DestX,
// Destination x-coordinate
SI32 DestY)
// Destination y-coordinate
Because there is no direct access to the internal DIB Sesction when rendering into a device context,
this function can be used to redraw the bitmap on the device context. If RenderPageEx() was called
in a separate thread then this function can be called after the thread returned. While the thread is

Previous topic: ReadImageResolutionEx

Next topic: ReEncryptPDF