note 23553 rejected from function.imagecreate by philip
| From: | philip@php.net | Date: | Wed, 18 Dec 2002 22:34:11 +0000 |
| Subject: | note 23553 rejected from function.imagecreate by philip | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-41082@lists.php.net to get a copy of this message | ||
Code correction and improvement of given sample.
<?php
header ("Content-type: image/png");
$im = @imagecreate (120, 50)
or die ("Cannot Initialize new GD image stream!");
$background_color = imagecolorallocate ($im, 255, 255, 100);
$text_color = imagecolorallocate ($im, 233, 14, 91);
imagestring ($im, 1, 5, 5, "A Simple Text String", $text_color);
imagepng ($im);
?>