Draw string and fill rectangle : Draw String : Graphics Image PHP Source Code


PHP Source Code » Graphics Image » Draw String »

 

Draw string and fill rectangle




<?php
  header("Content-type: image/gif");
  $imgcord = imagecreate(500,500);
  
  $blue = imagecolorallocate($imgcord, 0,0,255);
  $red = imagecolorallocate($imgcord, 255,0,0);

  ImageRectangle($imgcord, 175,165200,225, $blue);
  ImageFill($imgcord, 0,0, $red);
  ImageString($imgcord, 3,170220,"www.navioo.com", $blue);
  ImagePNG($imgcord);
  ImageDestroy($imgcord);
?>
           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo Graphics Image
» Draw String