Table of Contents

Method AddBezier

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

AddBezier(PointD, PointD, PointD, PointD)

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

void AddBezier(PointD startPoint, PointD controlPoint1, PointD controlPoint2, PointD endPoint)

Parameters

startPoint PointD

A PointD that represents the starting point of the curve.

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 first point 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.