Function Reference


Draws a set of line segments and Bezier curves

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


$hDC Handle to a device context.
$aPoint The 2D array ([x1, y1, type1], [x2, y2, type2], ... [xN, yN, typeN]) that contains the endpoints for
each line segment and the endpoints and control points for each Bezier curve, in logical units. In addition,
the array contains a parameters that specifies how each point is used. The third parameter of the array
can be one of the following values.

$PT_BEZIERTO or $PT_LINETO type can be combined with the following value that the corresponding point
is the last point in a figure and the figure is closed.

$iStart [optional] The index of array to start drawing at.
$iEnd [optional] The index of array to stop drawing at.

Return Value

Success: True
Failure: False


This function can be used in place of consecutive calls to _WinAPI_MoveToEx(), _WinAPI_LineTo(), and _WinAPI_PolyBezierTo()
functions to draw disjoint figures. The lines and curves are drawn using the current pen and figures are not filled.
If there is an active path started by calling _WinAPI_BeginPath(), _WinAPI_PolyDraw() adds to the path.

This function updates the current position.


_WinAPI_BeginPath, _WinAPI_LineTo, _WinAPI_MoveToEx, _WinAPI_PolyBezierTo

See Also

Search PolyDraw in MSDN Library.