Drawing a Line with imageline() : Line : Graphics Image PHP Source Code


PHP Source Code » Graphics Image » Line »

 

Drawing a Line with imageline()



<?php
 header("Content-type: image/gif");
 $image = imagecreate200200 );
 $red = imagecolorallocate($image, 255,0,0);
 $blue = imagecolorallocate($image, 0,0,255 );
 imageline$image, 00199199, $blue );
 imagegif($image);
?>

           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo Graphics Image
» Line