Method AddBezier
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
PointDA PointD that represents the starting point of the curve.
controlPoint1
PointDA PointD that represents the first control point for the curve.
controlPoint2
PointDA PointD that represents the second control point for the curve.
endPoint
PointDA 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.