Draw ellipse : Ellipse « Graphics Image « PHP






Draw ellipse


<html>
<body>
<?php
   $img=ImageCreate(300,300);
   $bgcolor=ImageColorAllocate($img,200,200,200);
   $red=ImagecolorAllocate($img,255,0,0); 
                                                            
   Imageellipse($img,50,50,100,50,$red);
                              
   ImagePNG($img,"pic.png");
   ImageDestroy($img);
?>
<img src="pic.png" border=0>
</body>
</html>
           
       








Related examples in the same category

1.Draw Filled Ellipse
2.Filled ellipse