PathFigure.GetFlattenedPathFigure Method

Definition

Gets a PathFigure object that is an polygonal approximation of this PathFigure object.

Overloads

GetFlattenedPathFigure()

Gets a PathFigure object that is an polygonal approximation of this PathFigure object.

GetFlattenedPathFigure(Double, ToleranceType)

Gets a PathFigure object, within the specified error of tolerance, that is an polygonal approximation of this PathFigure object.

Remarks

The flattening process is lossy with respect to animation and curve segment parameters.

GetFlattenedPathFigure()

Gets a PathFigure object that is an polygonal approximation of this PathFigure object.

C#
public System.Windows.Media.PathFigure GetFlattenedPathFigure();

Returns

The polygonal approximation of this PathFigure object.

Remarks

The flattening process is lossy with respect to animation and curve segment parameters.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

GetFlattenedPathFigure(Double, ToleranceType)

Gets a PathFigure object, within the specified error of tolerance, that is an polygonal approximation of this PathFigure object.

C#
public System.Windows.Media.PathFigure GetFlattenedPathFigure(double tolerance, System.Windows.Media.ToleranceType type);

Parameters

tolerance
Double

The computational tolerance of error.

type
ToleranceType

Specifies how the error of tolerance is interpreted.

Returns

The polygonal approximation of this PathFigure object.

Remarks

The flattening process is lossy with respect to animation and curve segment parameters.

tolerance determines how closely the curve is approximated.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10