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

Drawing Lines in php

Sun Oct 26, 2008 10:59 pm

Code:
<?php
     header 
("Content-type: image/png");
   
     
$im ImageCreate (150150);
     
$grey ImageColorAllocate ($im230230230);
     
$black ImageColorAllocate ($im000);
   
     
ImageLine($im030150150$black);
     
ImageLine($im015015030$black);
     
ImageLine($im03015030$black);
   
     
ImageString($im355"Figure 18.6: Lines"$black);
     
ImagePng ($im);
     
ImageDestroy ($im);
?>




Post a reply
  Related Posts  to : Drawing Lines in php
 Lines on the plane     -  
 Sphere by Lines     -  
 Script ingoring lines     -  
 Draw Triangle using Lines     -  
 increase the number of bank lines by <br/>     -  
 draw any number of lines on mouse clicks     -  
 Drawing a Triangler in php     -  
 Drawing a Polygon in php     -  
 php drawing a circle     -  
 drawing sonic     -  

Topic Tags

PHP Graphics