note 26341 added to function.imagecolorset
| From: | brice at allenbrand dot com | Date: | Sun, 27 Oct 2002 09:28:45 +0000 |
| Subject: | note 26341 added to function.imagecolorset | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-38616@lists.php.net to get a copy of this message | ||
//It's not possible to change the background color (PHP 4.1.0/GD 2.0.x): the following example
won't work. Use ImageColorAllocate() and ImageFill() instead...
<?PHP
Header("Content-type: image/jpeg");
$im=ImageCreateTrueColor(500,500);
ImageColorSet($im,0,255,0,0);
ImageJpeg($im,"",80);
ImageDestroy($im);
?>
--
http://www.php.net/manual/en/function.imagecolorset.php
http://master.php.net/manage/user-notes.php?action=edit+26341
http://master.php.net/manage/user-notes.php?action=delete+26341
http://master.php.net/manage/user-notes.php?action=reject+26341