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.FourHeights.PdfToolbox.Pdf.Content
Assembly: PdfTools.FourHeights.PdfToolbox (in PdfTools.FourHeights.PdfToolbox.dll) Version: 1.0.0
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