Alternative signature (deprecated as of PHP 8.1.0)boolimagefilledpolygon GdImageimage arraypoints intnum_points intcolor
A GdImage object, returned by one of the image creation functions, such as imagecreatetruecolor.
An array containing the x and y coordinates of the polygons vertices consecutively.
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.|