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

DynaPDF Manual - Page 157

Previous Page 156   Index   Next Page 158

Function Reference
Page 157 of 750
Bezier_1_3
Syntax:
SI32 pdfBezier_1_3(
const PPDF* IPDF, // Instance pointer
double x1,
// X-Coordinate of the first control point P1
double y1,
// Y-Coordinate of the first control point P1
double x3,
// X-Coordinate of the end point P3
double y3)
// Y-Coordinate of the end point P3
This function paints a Bézier curve with one control point. The second control point P2 coincides
with the final point P3 of the curve. The start point P0 must be set with MoveTo() or any other
painting operator before.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
Bezier_2_3
Syntax:
SI32 pdfBezier_2_3(
const PPDF* IPDF, // Instance pointer
double x2,
// X-Coordinate of the second control point P2
double y2,
// Y-Coordinate of the second control point P2
double x3,
// X-Coordinate of the end point P3
double y3)
// Y-Coordinate of the end point P3
The third supported Bézier curve type paints also a curve with one control point. In this version the
first control coincides with initial point P0 of the curve. The start point P0 must be set with MoveTo()
or any other painting operator before.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
Bézier curves:
 

Previous topic: Bezier_1_2_3

Next topic: BuildFamilyNameAndStyle