Forum und email


(No version information available, might be only in CVS)

ImagickPixel::getColor — Returns the color


array ImagickPixel::getColor ([ bool $normalized ] )

This function is currently not documented; only the argument list is available.


This function is EXPERIMENTAL. The behaviour of this function, the name of this function, and anything else documented about this function may change without notice in a future release of PHP. Use this function at your own risk.

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.



Normalize the color values

Return Values

An array of channel values, each normalized if true is given as param. Throws ImagickPixelException on error.