Image_Text::setColors
Вернуться к: Image_Text
Image_Text::setColors
Synopsis
bool Image_Text::setColors ( mixed $colors )
Using this method you can set multiple colors for your text. Use a simple numeric array to determine their order and give it to this function. Multiple colors will be cycled by the options specified 'color_mode' option. The given array will overwrite the existing color settings!
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.
a GD color special color (tiled,...).
Parameter
- mixed $colors
-
Single color or array of colors.
Return value
returns True on success, otherwise PEAR::Error.
Throws
throws no exceptions thrown
See
Note
This function can not be called statically.
Вернуться к: Image_Text