imagepolygon
Description
bool imagepolygon ( resource image, array points, int num_points, int color )
imagepolygon() creates a polygon in the given
image.
Parameters
imageAn image resource, returned by one of the image creation functions, such as imagecreatetruecolor().
pointsAn array containing the polygon's vertices, i.e. points[0] = x0, points[1] = y0, points[2] = x1, points[3] = y1, etc.
num_pointsTotal number of points (vertices)
colorA color identifier created with imagecolorallocate()
Examples

