Alternative signature (deprecated as of PHP 8.1.0)boolimageopenpolygon GdImageimage arraypoints intnum_points intcolor
A GdImage object, returned by one of the image creation functions, such as imagecreatetruecolor.
An array containing the polygon's vertices, e.g.:
points = x0 points = y0 points = x1 points = y1
Total number of points (vertices), which must be at least 3.
If this parameter is omitted as per the second signature, points must have an even number of elements, and num_points is assumed to be
A color identifier created with imagecolorallocate.
Returns true on success or false on failure.
|8.1.0||The parameter num_points has been deprecated.|
|8.0.0||image expects a GdImage instance now; previously, a resource was expected.|