FMX.Graphics.TPathData.FlattenToPolygon

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function FlattenToPolygon(var Polygon: TPolygon; const Flatness: Single = DefaultFlatness): TPointF;

C++

System::Types::TPointF __fastcall FlattenToPolygon(System::Math::Vectors::TPolygon &Polygon, const float Flatness = 2.500000E-01f);

Properties

Type Visibility Source Unit Parent
function public
FMX.Graphics.pas
FMX.Graphics.hpp
FMX.Graphics TPathData

Description

Converts the current TPathData into a sequence of connected line segments and returns the sequence as a TPolygon.

The Polygon parameter is the return variable. It is the result of the conversion.

Flatness is an optional parameter that 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.

See Also