GmagickPixel::getcolor

(PECL gmagick >= Unknown)

GmagickPixel::getcolorGibt die Farbe zurück

Beschreibung

public GmagickPixel::getcolor ( bool $as_array = false , bool $normalize_array = false ) : mixed

Gibt die Farbe als String oder Array zurück. Wenn die Farbe einen Transparenz-Kanal hat, wird dieser als der vierte Wert im Array zurück gegeben.

Parameter-Liste

as_array

true, damit ein Array anstelle eines Strings zurückgegeben wird.

normalize_array

true normalisiert die Farbwerte.

Rückgabewerte

Ein String oder Array von Farbwerten, normalisiert, wenn normalize_array gleich true ist. Wirft GmagickPixelException im Fehlerfall.

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top