Declaration ​
pascal
TFlattenedPath = class(TCustomPath)Description ​
TFlattenedPath extends TCustomPath to flatten mathematical curves (cubic Beziers, quadratic Beziers, arcs, circles, ellipses) into discrete polygonal vertex lines stored in dynamic float point arrays (TArrayOfArrayOfFloatPoint).
Key features include:
- Tessellated Vertex Storage: Stores flattened vector path contours in the
Patharray (TArrayOfArrayOfFloatPoint) accompanied by closure state flags inPathClosed(TBooleanArray). - Path Lifecycle Events: Triggers
OnBeginPathwhen starting a new sub-path andOnEndPathwhen completing a sub-path segment. - Dynamic Buffer Management: Utilizes internal vertex buffering with automatic grow strategies to minimize memory reallocations during curve tessellation.