Share via


PathF.GetFlattenedPath(Single, Boolean) Method

Definition

Creates a new path consisting only of line segments approximating all curves and arcs.

public Microsoft.Maui.Graphics.PathF GetFlattenedPath(float flatness = 0.001, bool includeSubPaths = false);
member this.GetFlattenedPath : single * bool -> Microsoft.Maui.Graphics.PathF
Public Function GetFlattenedPath (Optional flatness As Single = 0.001, Optional includeSubPaths As Boolean = false) As PathF

Parameters

flatness
Single

Maximum allowed deviation per segment (smaller = more segments).

includeSubPaths
Boolean

If true, flattens all sub-paths; otherwise stops after the first closed one.

Returns

A flattened path.

Applies to