note 17399 added to function.imagecolortransparent
| From: | php-general at lists dot php dot net | Date: | Fri, 07 Dec 2001 00:18:23 +0000 |
| Subject: | note 17399 added to function.imagecolortransparent | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-21728@lists.php.net to get a copy of this message | ||
when a color is defined as transparent, anytime that color is used in another function (before or
after transparency definition) will be transparent
ex:
$red = ImageColorAllocate ($im, 233, 14, 91);
$blue = ImageColorAllocate ($im, 0x20, 0x60, 0xaa);
imagefilledarc ($im, 100, 100, 80, 80, 0, 60, $blue, IMG_ARC_PIE);//arc is transparent even though
is not defined yet
$trans=imagecolortransparent($im,$blue);//affects all occurances of blue, before and after this line
ALSO:
ImageString ($im, 10, 5, 5, "Transparent Text String", $blue);
---is equivalent to----
ImageString ($im, 10, 5, 5, "Transparent Text String", $trans);
--
http://www.php.net/manual/en/function.imagecolortransparent.php
http://master.php.net/manage/user-notes.php?action=edit+17399
http://master.php.net/manage/user-notes.php?action=delete+17399
http://master.php.net/manage/user-notes.php?action=reject+17399