Thread: php GD libary
View Single Post
  #1 (permalink)  
Old 06-09-04, 12:19 PM
mavoric mavoric is offline
Newbie Coder
 
Join Date: Feb 2004
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
php GD library

anyone know how to place a white box at the bottom of this image?

PHP Code:

<?php

   header
("Content-type: image/jpeg");
   
$string $_GET['text'];
   
$im    imagecreatefromjpeg("http://www.mysite.com/image.jpg");
   
$black imagecolorallocate($im00000000);
   
$px    = (imagesx($im) - 7.5 strlen($string)) / 2;
   
imagestring($im3$px9$string$black);
   
imagejpeg($im);
   
imagedestroy($im);
?>
as i have this, but i would like to put a white box behind the text? any ideas

Last edited by mavoric; 06-09-04 at 12:36 PM.
Reply With Quote