Image_Text::setColor (Previous) (Next) Package Image_Text Constants

View this page in Last updated: Mon, 02 Jul 2007
English | French | German | Hungarian | Japanese | Polish | Spanish | Plain HTML

Image_Text::setColors()

Image_Text::setColors() -- Set the color-set

Opis

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,...).

A single color or an array of colors are allowed here.

Parametr

mixed $colors

Single color or array of colors.

Zwracana wartość

returns True on success, otherwise PEAR::Error.

Wyjątki

throws no exceptions thrown

Uwagi

Ta funkcja nie może być wywołana statycznie.

Image_Text::setColor (Previous) (Next) Package Image_Text Constants

Download Documentation Last updated: Mon, 02 Jul 2007
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.