See Also Examples Applies To
Draws a polygon into the native GdPicture image.
Syntax
object.DrawPolygon (*arPoints(), nPenWidth, nColorARGB, bAntiAlias)
The DrawPolygon syntax has these parts:
| Part | Description |
| object | Required. An object expression that evaluates to an object in the Applies To list. |
| *arPoints() | Required. Input 1D or 2D Long Array. Pointer to an array of long that specify the vertices of the polygon. |
| nPenWidth | Required. Long. The width in pixel of the pen used to draw the polygon. |
| nColorARGB | Optional. Long. Default value is Black. 32-bit Color (ARGB) of the polygon. |
| bAntiAlias | Optional. Boolean. Default value is False. Set to True to apply the Antialiasing algorithm else False. |
Returns
Long. GdPictureStatus
Remarks
If the first and last coordinates in the points array are not identical, a line is drawn between them to close the polygon.
Category
Draw (Lines and Shapes)