note 35388 added to ref.image
| From: | not_gonna at tell_you dot com | Date: | Fri, 29 Aug 2003 12:28:01 +0000 |
| Subject: | note 35388 added to ref.image | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-55293@lists.php.net to get a copy of this message | ||
For some reason my text is always coming out black.
To see what's wrong:
http://phpdevil.sparkysnet.com/images/image.php
Here's the code, is there anything wrong?
<?php
// create the image
$gfx = imagecreatefromgif("bg.gif");
$white = imagecolorallocate($gfx, 255, 255, 255);
imagestring($gfx, 5, 20, 5, "Random!", $white);
// send the image
header("content-type: image/gif");
imagegif($gfx);
?>
----
Manual Page -- http://www.php.net/manual/en/ref.image.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+35388
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+35388&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+35388&report=yes