note 1200 modified in Image functions by ronabop
| From: | ronabop@php.net | Date: | Wed, 04 Oct 2000 14:43:14 +0000 |
| Subject: | note 1200 modified in Image functions by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-6027@lists.php.net to get a copy of this message | ||
I hope this can help hours of investigation for people how doen't know how to do it:
To simulate a gif from a php3 file:
// create the image
$gif = ImageCreate(200,200);
$bg = ImageColorAllocate($gif,0,0,0);
$tx = ImageColorAllocate($gif,255,128,128);
ImageFilledRectangle($gif,0,0,200,200,$bg);
ImageString($gif,3,70,90,"it works !",$tx);
// send the image
header("content-type: image/gif");
ImageGif($gif);
That's all folks !!
http://www.php.net/manual/image-functions.php