Drawing a Square and a string : Draw String : Graphics Image PHP Source Code


PHP Source Code » Graphics Image » Draw String »

 

Drawing a Square and a string



<?php
     header ("Content-type: image/png");
   
     $im = ImageCreate (150150);
     $grey = ImageColorAllocate ($im, 230230230)// background color
     $black = ImageColorAllocate ($im, 000);
   
     ImageRectangle($im, 4040140140, $black);
     ImageString($im, 355"Figure 18.3: Square", $black);
     ImagePng ($im);
     ImageDestroy ($im);
?>
           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo Graphics Image
» Draw String