Click or drag to resize
Pdftools logo

PathGeneratorBezierTo Method

Draw a bezier curve.

Append a cubic Bézier curve to the current path. The curve extends from the current point to the target position, using controlPoint1 and controlPoint2 as the Bézier control points.

The current position is changed to the target position.


Namespace: PdfTools.Toolbox.Pdf.Content
Assembly: PdfTools.Toolbox (in PdfTools.Toolbox.dll) Version: 1.3.0+2e7887cb8ae45c4d911ad975ad001ac2f1f257d8
Syntax
C#
public void BezierTo(
	Point controlPoint1,
	Point controlPoint2,
	Point target
)

Parameters

controlPoint1  Point
the first bezier control point
controlPoint2  Point
the second bezier control point
target  Point
the target coordinates
Exceptions
ExceptionCondition
InvalidOperationExceptionif the object has already been closed
InvalidOperationExceptionif the path object has already been closed
See Also