imageellipse
PHP 4 >= 4.0.6, PHP 5, PHP 7, PHP 8
imageellipse - Draw an ellipse
Manual
imageellipse(
GdImage$image,
int$center_x,
int$center_y,
int$width,
int$height,
int$color
): bool
GdImage$image,
int$center_x,
int$center_y,
int$width,
int$height,
int$color
): bool
Draws an ellipse centered at the specified coordinates.
Parameters
- image
A GdImage object, returned by one of the image creation functions, such as imagecreatetruecolor.
- center_x
-
x-coordinate of the center.
- center_y
-
y-coordinate of the center.
- width
-
The ellipse width.
- height
-
The ellipse height.
- color
-
The color of the ellipse. A color identifier created with imagecolorallocate.
Return Values
Returns true on success or false on failure.
Notes
Note:
imageellipse ignores imagesetthickness.
Changelog
Version | Description |
8.0.0 | image expects a GdImage instance now; previously, a resource was expected. |