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.2.0+708f7116d933787a0712d56133e4c2c9bf21e5e3
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