PdfCanvas.DrawCurveTo Method

Draws a cubic Bézier curve.

Namespace:  BitMiracle.Docotic.Pdf
Assembly:  BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)

Syntax

C#
public void DrawCurveTo(
	PdfPoint firstControlPoint,
	PdfPoint secondControlPoint,
	PdfPoint endpoint
)
VB
Public Sub DrawCurveTo ( 
	firstControlPoint As PdfPoint,
	secondControlPoint As PdfPoint,
	endpoint As PdfPoint
)

Parameters

firstControlPoint
Type: BitMiracle.Docotic.Pdf.PdfPoint
The first control point.
secondControlPoint
Type: BitMiracle.Docotic.Pdf.PdfPoint
The second control point.
endpoint
Type: BitMiracle.Docotic.Pdf.PdfPoint
The endpoint.

Remarks

The curve extends from the CurrentPosition to the endpoint, using firstControlPoint and secondControlPoint as the Bézier control points.
The new current point is endpoint.

Please use AppendCurveTo(PdfPoint, PdfPoint, PdfPoint) if you want to append a curve to the current path.

See Also