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

DynaPDF Manual - Page 629

Previous Page 628   Index   Next Page 630

Function Reference
Page 629 of 750
SetDrawDirection
Syntax:
LBOOL pdfSetDrawDirection(
const PPDF* IPDF,
// Instance pointer
TDrawDirection Direction) // Draw direction
typedef enum
{
ddCounterClockwise = 0,
ddClockwise
= 1
}TDrawDirection;
The function sets the draw direction of closed vector graphics such as rectangles, ellipses, triangles
and so on. The draw direction is important if a path should be filled with the nonzero winding
number rule or even-odd rule. Both modes are described in detail under ClipPath().
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
SetEMFFrameDPI
Syntax:
LBOOL pdfSetEMFFrameDPI(
const PPDF* IPDF, // Instance pointer
UI32 DPIX,
// Horizontal DPI per inch
UI32 DPIY)
// Vertical DPI per inch
This function can be used to adjust DPI value which is used to calculate the picture size of an EMF
file. The values of DPIX and DPIY are only used if the flag mfUseRclFrame is set (see
SetMetaConvFlags()).
The flag mfUseRclFrame is primarily used to convert EMF files which where originally created from
non-portable WMF files. Such files contain often a wrongly calculated picture size (rclBounds) so
that the picture size must be calculated from the rectangle rclFrame of the EMF file header. This is
often the one and only way to convert those files successfully to PDF.
The default DPI value is 100. If the EMF picture appears too large then decrease the DPI value, e.g. to
72.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
 

Previous topic: SetDocInfoEx

Next topic: SetErrorMode