DynaPDF Manual - Page 196

Previous Page 195   Index   Next Page 197

Function Reference
Page 196 of 860
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