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     -  
 Draw Triangle using Lines     -  
 Script ingoring lines     -  
 increase the number of bank lines by <br/>     -  
 draw any number of lines on mouse clicks     -  
 php drawing a circle     -  
 drawing sonic     -  
 Drawing a Square in php     -  
 Drawing a Triangler in php     -  

Topic Tags

PHP Graphics