Function Reference


_WinAPI_Polygon

Draws a polygon consisting of two or more vertices connected by straight lines

#include <WinAPIGdi.au3>
_WinAPI_Polygon ( $hDC, Const ByRef $aPoint [, $iStart = 0 [, $iEnd = -1]] )

Parameters

$hDC Handle to the device context.
$aPoint The 2D array ([x1, y1], [x2, y2], ... [xN, yN]) that contains the vertices of the polygon in logical
units. The polygon is closed automatically by drawing a line from the last vertex to the first.
$iStart [optional] The index of array to start creating at.
$iEnd [optional] The index of array to stop creating at.

Return Value

Success: True
Failure: False

Remarks

The polygon is outlined by using the current pen and filled by using the current brush and polygon fill mode.

See Also

Search Polygon in MSDN Library.