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.0.0+fdabb036503e9f99735634a6d4f5be875399e9f5
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