Manuál PHP | ||
---|---|---|
PÅ™edcházejÃcà | Dalšà |
imagepolygon
Popis
bool imagepolygon ( resource image, array points, int num_points, int color )
imagepolygon() creates a polygon in the given
image
.
Seznam parametrů
image
An image resource, returned by one of the image creation functions, such as 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()
PÅ™Ãklady