ChartDirector 7.1 (C++ Edition)

DrawArea.polygon


Usage

void polygon(IntArray x, IntArray y, int edgeColor, int fillColor);

Description

Draws a polygon.

Arguments

ArgumentDefaultDescription
x(Mandatory)An array of numbers representing the x coordinates of the vertices of a polygon.
y(Mandatory)An array of numbers representing the y coordinates of the vertices of a polygon.
edgeColor(Mandatory)The border color. To disable border, set the edgeColor the same as the fillColor.
fillColor(Mandatory)The fill color. To disable filling, set the fillColor to Transparent.

Return Value

None