FMX.Graphics.TPathData.Flatten
Delphi
procedure Flatten(const Flatness: Single = DefaultFlatness);
C++
void __fastcall Flatten(const float Flatness = 2.500000E-01f);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | FMX.Graphics.pas FMX.Graphics.hpp |
FMX.Graphics | TPathData |
Description
Converts each curve in the current TPathData into a sequence of connected line segments.
The Flatness
parameter specifies the maximum permitted error between the curve and its flattened approximation. By default, it is 0.25. Reducing the flatness value will increase the number of line segments in the approximation.