imagefilledellipse

PHP 4 >= 4.0.6, PHP 5, PHP 7, PHP 8
imagefilledellipse - Draw a filled ellipse
Manual
Code Examples

imagefilledellipse(
     GdImage$image,
     int$center_x,
     int$center_y,
     int$width,
     int$height,
     int$color
): bool

Draws an ellipse centered at the specified coordinate on the given image.

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 fill color. A color identifier created with imagecolorallocate.

Return Values

Returns true on success or false on failure.

Notes

Note:

imagefilledellipse ignores imagesetthickness.

Changelog

Version Description
8.0.0 image expects a GdImage instance now; previously, a resource was expected.

Related Functions

Example of imagefilledellipse

Show all examples for imagefilledellipse

PHP Version:


Function imagefilledellipse:

Image Processing and GD Functions

Most used PHP functions