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

DynaPDF Manual - Page 730

Previous Page 729   Index   Next Page 731

Function Reference
Page 730 of 750
Triangle
Syntax:
LBOOL pdfTriangle(
const PPDF* IPDF,
// Instance pointer
double x1,
// X-Coordinate of the first point
double y1,
// Y-Coordinate of the first point
double x2,
// X-Coordinate of the second point
double y2,
// y-Coordinate of the second point
double x3,
// X-Coordinate of the third point
double y3,
// Y-Coordinate of the third point
TPathFillMode FillMode) // Fill mode
The function draws a triangle.
The draw direction can be changed with the function SetDrawDirection().
A triangle is a closed path that can be filled, stroked or both. It is also possible to draw a triangle
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 triangle 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.
UnLockLayer
Syntax:
LBOOL pdfUnLockLayer(
const PPDF* IPDF, // Instance pointer
UI32 Layer)
// Handle of an OCG
The function removes a layer from the list of locked layers. See also LockLayer() for further
information.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
UTF16ToUTF32
Syntax:
UI32* pdfUTF16ToUTF32(
const PPDF* IPDF,
// Instance pointer
const UI16* Source) // Null-terminated UTF-16 Unicode string
The function converts a UTF-16 Unicode string to UTF-32. UTF-32 is the default Unicode format on
Linux and UNIX operating systems. The input string must be defined in the CPU's byte ordering
(little-endian on a little-endian machine and big-endian on a big-endian machine), the output string
is also returned in the CPU's byte ordering.
 

Previous topic: TranslateString2 (Font API)

Next topic: UTF16ToUTF32Ex