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

php drawing a circle

Sun Oct 26, 2008 10:49 pm

Code:
<?php
     header ("Content-type: image/png");
   
     $im = ImageCreate (150, 150);
     $grey = ImageColorAllocate ($im, 230, 230, 230);
     $black = ImageColorAllocate ($im, 0, 0, 0);
   
     ImageString($im, 3, 5, 5, "Figure 18.5: Circle", $black);
     ImageArc($im, 75, 75, 50, 50, 0, 360, $black);
     ImagePng ($im);
     ImageDestroy ($im);
?>

       




Post a reply
  Related Posts  to : php drawing a circle
 Drawing circle using circle equation directly , on mouse     -  
 Circle drawing using Bresenham     -  
 php drawing a circle with imagearc()     -  
 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