Creates a rectangle filled with color in the given image starting at point 1 and ending at point 2. 0, 0 is the top left corner of the image.
A GdImage object, returned by one of the image creation functions, such as imagecreatetruecolor.
x-coordinate for point 1.
y-coordinate for point 1.
x-coordinate for point 2.
y-coordinate for point 2.
The fill color. A color identifier created with imagecolorallocate.
Returns true on success or false on failure.
|8.0.0||image expects a GdImage instance now; previously, a resource was expected.|