The ImagickPixel class
PHP Manual

ImagickPixel::setColor

(PECL imagick 2.0.0)

ImagickPixel::setColorSets the color

Opis

bool ImagickPixel::setColor ( string $color )
Ostrzeżenie

Ta funkcja jest obecnie nieudokumentowana, dostępna jest jedynie lista jej argumentów.

Sets the color described by the ImagickPixel object, with a string (e.g. "blue", "#0000ff", "rgb(0,0,255)", "cmyk(100,100,100,10)", etc.).

Parametry

color

The color definition to use in order to initialise the ImagickPixel object.

Zwracane wartości

Returns TRUE if the specified color was set, FALSE otherwise.


The ImagickPixel class
PHP Manual