07-Dec-2001 11:18
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);