Switch to full style
:read: Start PHP with us. Includes topics to help you in php
Post a reply

php drawing a circle with imagearc()

Sun Oct 26, 2008 10:51 pm

Code:
<?php
header("Content-type: image/gif");
$image = imagecreate( 200, 200 );
$red = imagecolorallocate($image, 255,0,0);
$blue = imagecolorallocate($image, 0,0,255 );
imagearc( $image, 99, 99, 180, 180, 0, 360, $blue );
imagefill( $image, 99, 99, $blue );
imagegif($image);
?>




Post a reply
  Related Posts  to : php drawing a circle with imagearc()
 Drawing circle using circle equation directly , on mouse     -  
 php drawing a circle     -  
 Circle drawing using Bresenham     -  
 Circle direct drawing algorithm     -  
 Drawing Circle using Mid-point implmented using J2me     -  
 Circle drawing using Polar based algorithm with C++     -  
 Circle class in C++     -  
 compute area of the circle.     -  
 Calculate the area of a circle of given radius     -  
 rotate sphere in a circle with light     -  

Topic Tags

PHP Graphics