Table of Contents

Method AddBezierTo

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

AddBezierTo(PointD, PointD, PointD)

Adds a cubic Bézier curve to the current figure.

public void AddBezierTo(PointD controlPoint1, PointD controlPoint2, PointD endPoint)

Parameters

controlPoint1 PointD

A PointD that represents the first control point for the curve.

controlPoint2 PointD

A PointD that represents the second control point for the curve.

endPoint PointD

A PointD that represents the endpoint of the curve.

Remarks

The cubic curve is constructed from the last point in the figure to the fourth point by using the second and third points as control points. If there is a previous line or curve segment in the figure, a line is added to connect the endpoint of the previous segment to the starting point of the cubic curve.