Skip to main content
Table of Contents

TTMSFNCGraphicsPath.FlattenToPolygon Method

Approximates all curves with line segments and outputs the result as a flat polygon array.

API unit family: TMSFNCGraphicsTypes Declaring type: TTMSFNCGraphicsPath

Syntax

FMX.TMSFNCGraphicsTypes.hppPascalC++
procedure FlattenToPolygon(var Polygon: TTMSFNCGraphicsPathPolygon; const Flatness: Single = 0.25);
void __fastcall FlattenToPolygon(TTMSFNCGraphicsPathPolygon &Polygon, const float Flatness = 2.500000E-01f);

Parameters

Name Description
Polygon Receives the array of approximated polygon vertices.
Flatness Curve approximation tolerance. Default is 0.25.