ArcSegmentToBezierPoints Method

Gets the points of this ArcSegment as a collection of Bézier points.

Definition

Namespace: KGySoft.Drawing.Shapes
Assembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 10.0.0-rc.1
C#
public IList<PointF> ToBezierPoints()

Return Value

IListPointF
The points of this ArcSegment as a collection of Bézier points.

Remarks

The result has 1 + 3n points, where n is the number of cubic Bézier curves in this segment. As an ArcSegment with nonzero SweepAngle can be approximated by 1 to 4 Bézier curves, the result normally contains 4, 7, 10 or 13 points.

If SweepAngle is zero, the result contains a single point, which is equal to StartPoint.

The result of this method can be used as a valid parameter for the Path.AddBeziers method.

See Also