imagepolygon
Opis
bool imagepolygon ( resource image, array points, int num_points, int color )
imagepolygon() creates a polygon in the given
image.
Parametry
obrazZasób obrazu, zwrócony przez jedną z funkcji tworzących obrazy, taką jak 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()
Przykłady
