<?php
bool imagefilledellipse ( GdImage $image,
int $center_x, int $center_y,
int $width, int $height, int $color )
where,
$image = The image identifier
$center_x = The x-coordinate - the center point
$center_y = The y-coordinate - the center point
$width = The width of the ellipse
$height = The height of the ellipse
$color = The fill color as returned by imagecolorallocate
?>
<?php
echo 'PHP VERSION: ' . PHP_VERSION . '<br><br>';
$base_img = "png/baseXx.png";
$dest_img = 'png/PNG 064 01 imagefilledellipse.png';
$id_fillellps1 = imagecreatefrompng($base_img);
$red = imagecolorallocatealpha($id_fillellps1, 238, 0, 0, 70);
$black = imagecolorallocatealpha($id_fillellps1, 0, 0, 0, 90);
$blue = imagecolorallocatealpha($id_fillellps1, 0, 0, 238, 60);
/* - -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
circle
horizontal_axle = vertical_axle
- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- */
$xc0ellps1 = 200;
$yc0ellps1 = 150;
$horizontal_axleellps1 = 200;
$vertical_axleellps1 = 200;
imagefilledellipse($id_fillellps1, $xc0ellps1, $yc0ellps1,
$horizontal_axleellps1, $vertical_axleellps1, $red);
/* - -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
ellipse 1
horizontal_axle < vertical_axle
- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- - */
$xc0ellps1 = 200;
$yc0ellps1 = 150;
$horizontal_axleellps1 = 50;
$vertical_axleellps1 = 200;
imagefilledellipse($id_fillellps1, $xc0ellps1, $yc0ellps1,
$horizontal_axleellps1, $vertical_axleellps1, $black);
/* - -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
ellipse 2
horizontal_axle > vertical_axle
- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- - */
$xc0ellps1 = 200;
$yc0ellps1 = 150;
$horizontal_axleellps1 = 200;
$vertical_axleellps1 = 50;
imagefilledellipse($id_fillellps1, $xc0ellps1, $yc0ellps1,
$horizontal_axleellps1, $vertical_axleellps1, $blue);
imagepng($id_fillellps1, $dest_img);
echo basename($dest_img); ?>
<br><br><img src="<?php echo $dest_img; ?>"
alt="<?php echo $dest_img; ?>">