DrawPolygon
DrawPolygon -- draws a polygon using the current stroke, stroke width, and fill color or texture
Description
void DrawPolygon( DrawingWand drw_wnd, array x_y_points_array )
Draws a polygon using the current stroke, stroke width, and fill color or
texture of the DrawingWand, through a set of points on the image.
The function accepts an EVEN length array, containing a MINIMUM of 6
numbers numbers, which represent (x, y) points on an image's co-odinate
system.
Examples:
DrawPolygon( $drw_wnd, array( $x1, $y1, $x2, $y2, $x3, $y3 ) );
DrawPolygon(
$drw_wnd, array( $x1, $y1, $x2, $y2, $x3, $y3, $x4, $y4, $x5, $y5 ) );
A description of each parameter follows:
| drw_wnd | A DrawingWand resource |
| x_y_points_array | An EVEN length array of numbers representing x and y ordinates |