Draw Filled Ellipse : Ellipse « Graphics Image « PHP






Draw Filled Ellipse


<?php
$myImage = ImageCreateFromPNG ("logo.png");

$c = ImageColorAllocate ($myImage, 2, 255, 255);

ImageFilledEllipse($myImage, 10, 7, 20, 20, $c);
ImageFilledEllipse($myImage, 15, 7, 20, 20, $c);
ImageFilledEllipse($myImage, 20, 7, 20, 20, $c);

header ("Content-type: image/png");
ImagePNG($myImage);

ImageDestroy($myImage);
?>

           
       








Related examples in the same category

1.Draw ellipse
2.Filled ellipse