Share via


Stroke.GetFlattenedBezierPoints Method

Stroke.GetFlattenedBezierPoints Method

Returns the array of actual points that are used to approximate the Bezier representation of a Stroke object.

Definition

Visual Basic .NET Public Function GetFlattenedBezierPoints() As Point()
C# public Point[] GetFlattenedBezierPoints();
Managed C++ public: Point* GetFlattenedBezierPoints() __gc[];

Return Value

System.Drawing.Point[]. Returns a Point Leave Site array that indicates the points that were used to draw the Bezier curve representation of the Stroke object.

Remarks

The fitting error is set to 0. Strokes appear smoothest when using this default overload, but the drawing performance is slowest. To set the fitting error manually, use the GetFlattenedBezierPoints(Int32) overload of this method.

Examples

[C#]

This C# example gets the flattened Bezier points of Stroke, theStroke.

Point[] ptStrokePoints = theStroke.GetFlattenedBezierPoints();
                

[VB.NET]

This Microsoft® Visual Basic® .NET example gets the flattened Bezier points of Stroke, theStroke.

Dim ptStrokePoints() As Point = theStroke.GetFlattenedBezierPoints()
                

See Also