Skip to main content
Table of Contents

TTMSFNCGraphicsContext.DrawPolygon Method

Strokes a closed polygon using AStroke settings.

API unit family: TMSFNCGraphics Declaring type: TTMSFNCGraphicsContext

Syntax

FMX.TMSFNCGraphics.hppPascalC++
procedure DrawPolygon(AStroke: TTMSFNCGraphicsStroke; APolygon: TTMSFNCGraphicsPathPolygon); virtual; abstract;
virtual void __fastcall DrawPolygon(TTMSFNCGraphicsStroke* AStroke, TTMSFNCGraphicsPathPolygon APolygon) = 0;

Parameters

Name Description
AStroke Stroke settings (color, width, kind) to apply.
APolygon Array of floating-point vertices defining the polygon.