DynaPDF Manual - Page 766

Previous Page 765   Index   Next Page 767

Function Reference
Page 766 of 787
Remarks:
The output string buffer is automatically allocated in VB .Net and C#. The parameter OutText
should be initialized with null or Nothing when using these programming languages.
This function should not be used to convert strings of CID fonts. To process strings of CID fonts use
the function TranslateRawCode().
Notice:
To improve processing speed the function does not check whether the parameters are valid.
In C/C++ and Delphi the output string buffer is not null-terminated and the function does not use
the exception handling of DynaPDF. In VB .Net and C# the function returns a native .Net string. No
error message is returned on failure. However, the only possible error is out of memory.
Return values:
If the function succeeds the return value is the number of Unicode characters copied into the buffer.
If the function fails the return value is zero.
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.
 

Previous topic: TranslateString2 (Font API)

Next topic: UnLockLayer, UTF16ToUTF32, UTF16ToUTF32Ex

Start Chat