PDF Creator Pilot documentation |
Download CHM version of this manual. |
|
![]() ![]() ![]() ![]() Collapse AllThis method creates a Bézier cubic curve segment.
|
| HRESULT DrawCurveTo ( FLOAT firstX, FLOAT firstY, FLOAT secondX, FLOAT secondY, FLOAT thirdX, FLOAT thirdY ) |
Parameters
firstX
X coordinate of 1st control point
firstY
Y coordinate of 1st control point
secondX
X coordinate of 2nd control point
secondY
Y coordinate of 2nd control point
thirdX
X coordinate of end point
thirdY
Y coordinate of end point
Return value
If successful, this method returns S_OK. If it fails, this method should return one of the error values.
Remarks
This method appends a cubic Bézier curve to the current path. The curve extends from the current point to the point (thirdX, thirdY), using (firstX, firtsY) and (secondX, secondY) as the Bézier control points. The new current point is (thirdX, thirdY).
Example
DrawCurveTo Example
Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.MoveTo(50, 200)
PDF.DrawCurveTo(80, 70, 200, 200, 300, 90);
PDF.Stroke;
PDF.SaveToFile('test.pdf', true);
C/C++
[copy to clipboard]
// PDF object is supposed to be created
PDF->MoveTo(50, 200)
PDF->DrawCurveTo(80, 70, 200, 200, 300, 90);
PDF->Stroke();
PDF->SaveToFile("test.pdf", true);
C#
[copy to clipboard]
// PDF object is supposed to be created
PDF.MoveTo(50, 200)
PDF.DrawCurveTo(80, 70, 200, 200, 300, 90);
PDF.Stroke();
PDF.SaveToFile("test.pdf", true);
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created PDF.MoveTo 50, 200 PDF.DrawCurveTo 80, 70, 200, 200, 300, 90 PDF.Stroke PDF.SaveToFile "test.pdf", true
See Also
Reference


