imagepolygon
Opis
bool imagepolygon ( resource image, array points, int num_points, int color )
imagepolygon() creates a polygon in the given
image
.
Parametry
obraz
Zasób obrazu, zwrócony przez jedną z funkcji tworzących obrazy, taką jak imagecreatetruecolor().
points
An array containing the polygon's vertices, i.e. points[0] = x0, points[1] = y0, points[2] = x1, points[3] = y1, etc.
num_points
Total number of points (vertices)
color
A color identifier created with imagecolorallocate()
Przykłady