PEAR Manual
This manual is provided as a courtesy. It is not an official source. Please check pear.php.net for updated information.
require_once 'ImageText.php';
bool Image_Text::setColor (mixed $color [, mixed $id = 0])
bool Image_Text::setColor
This method is used to set a color at a specific color ID inside the color cycle.
The following colors syntaxes are understood by this method:
"#ffff00" hexadecimal format (HTML style), with and without #.
"#08ffff00" hexadecimal format (HTML style) with alpha channel (08), with and without #.
array with 'r','g','b' and (optionally) 'a' keys, using int values.
Color value.
ID (in the color array) to set color to.
returns True on success, otherwise PEAR::Error.
throws no exceptions thrown
see Image_Text::setColors(), Image_Text::set()
This function can not be called statically.