|
ImagickPixel::getColorReturns the color Beschreibung
array ImagickPixel::getColor
([ bool
$normalized = false
] )Returns the color described by the ImagickPixel object, as an array. If the color has an opacity channel set, this is provided as a fourth value in the list. Parameter-Liste
Rückgabewerte
An array of channel values, each normalized if Beispiele
Beispiel #1 Basic Imagick::getColor usage
<?phpDas oben gezeigte Beispiel erzeugt folgende Ausgabe:
Standard values
Array
(
[r] => 165
[g] => 42
[b] => 42
[a] => 0
)
Normalized values:
Array
(
[r] => 0.64705882352941
[g] => 0.16470588235294
[b] => 0.16470588235294
[a] => 0.25000381475547
)
|