imagefilledellipse
Intervention/image
Supported Versions: PHP 4 >= 4.0.6, PHP 5, PHP 7, PHP 8
Draw a filled ellipse
imagefilledellipse
(
GdImage $image
,
int $center_x
,
int $center_y
,
int $width
,
int $height
,
int $color
):
bool
if (
$this
->
hasBorder
()) {
imagefilledellipse
(
$image
->
getCore
(),
$x
,
$y
,
$this
->
width
-
1
,
$this
->
height
-
1
,
$background
->
getInt
());
$border_color
= new
Color
(
$this
->
border_color
);
imagesetthickness
(
$image
->
getCore
(),
$this
->
border_width
);
src/Intervention/Image/Gd/Shapes/EllipseShape.php
imagearc
(
$image
->
getCore
(),
$x
,
$y
,
$this
->
width
,
$this
->
height
,
0
,
359.99
,
$border_color
->
getInt
());
} else {
imagefilledellipse
(
$image
->
getCore
(),
$x
,
$y
,
$this
->
width
,
$this
->
height
,
$background
->
getInt
());
}
return
true
;
src/Intervention/Image/Gd/Shapes/EllipseShape.php