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

Draw Filled Arc php code

Sun Oct 26, 2008 10:48 pm

Code:
<?php
$myImage
= ImageCreate(300,300);

$white = ImageColorAllocate ($myImage, 255, 255, 255);
$red  = ImageColorAllocate ($myImage, 255, 0, 0);
$green = ImageColorAllocate ($myImage, 0, 255, 0);
$blue = ImageColorAllocate ($myImage, 0, 0, 255);

ImageFilledArc($myImage, 100, 100, 200, 150, 0, 90, $red, IMG_ARC_PIE);
ImageFilledArc($myImage, 100, 100, 200, 150, 90, 180 , $green, IMG_ARC_PIE);
ImageFilledArc($myImage, 100, 100, 200, 150, 180, 360 , $blue, IMG_ARC_PIE);

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

ImageDestroy($myImage);
?>




Post a reply
  Related Posts  to : Draw Filled Arc php code
 Draw Filled Ellipse in php     -  
 Java code to draw shortest path tree     -  
 Disable submit button until all form's fields are filled     -  
 Earn $2 Per Form Filled. Now Hiring Data Entry Typists     -  
 Freeman chain code algorithm code     -  
 i want code for connecting mobile and pc can u send me code     -  
 How to draw a gun     -  
 Draw pie chart php     -  
 Draw An Arc in java     -  
 draw Round gradient     -  

Topic Tags

PHP Graphics