imagearc
PHP 4, PHP 5, PHP 7, PHP 8
imagearc - Draws an arc
Manual
imagearc(
GdImage$image,
int$center_x,
int$center_y,
int$width,
int$height,
int$start_angle,
int$end_angle,
int$color
): bool
GdImage$image,
int$center_x,
int$center_y,
int$width,
int$height,
int$start_angle,
int$end_angle,
int$color
): bool
imagearc draws an arc of circle centered at the given 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 arc width.
- height
-
The arc height.
- start_angle
-
The arc start angle, in degrees.
- end_angle
-
The arc end angle, in degrees. 0° is located at the three-o'clock position, and the arc is drawn clockwise.
- color
-
A color identifier created with imagecolorallocate.
Return Values
Returns true on success or false on failure.
Changelog
Version | Description |
8.0.0 | image expects a GdImage instance now; previously, a resource was expected. |