PathF.GetFlattenedPath(Single, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.