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( _
ByVal fittingError As Integer _
) As Point()
C# public Point[] GetFlattenedBezierPoints(
int fittingError
);
Managed C++ public: Point* GetFlattenedBezierPoints(
int *fittingError
) __gc[];

Parameters

fittingError System.Int32. The maximum distance (accuracy), in HIMETRIC units, between the Bezier control points and the points of the Stroke object. This is also known as the curve fitting error level.

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

Set the fittingError parameter to a value between 0 and 500 HIMETRIC units, if possible. If the value is greater than 500, a stroke may appear distorted or coarse when drawn. Strokes appear smoothest when the fitting error level is set to 0, but the drawing performance is slowest at this level.

Examples

[C#]

This C# example gets the flattened Bezier points of Stroke object, theStroke, by using a fitting error of 500 HIMETRIC units.

Point[] ptStrokePoints = theStroke.GetFlattenedBezierPoints(500);
                

[VB.NET]

This Microsoft® Visual Basic® .NET example gets the flattened Bezier points of Stroke object, theStroke, by using a fitting error of 500 HIMETRIC units.

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

See Also