note 26341 deleted from function.imagecolorset by cece
| From: | cece@php.net | Date: | Sat, 16 Aug 2003 19:44:43 +0000 |
| Subject: | note 26341 deleted from function.imagecolorset by cece | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-54431@lists.php.net to get a copy of this message | ||
Note Submitter: brice@allenbrand.com
----
//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);
?>