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.4.0+02318d3e3f9645a1305b87026fb971a660079e54
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