The Imagick class
PHP Manual

Imagick::getImagePixelColor

(PECL imagick 2.0.0)

Imagick::getImagePixelColorReturns the color of the specified pixel

Description

ImagickPixel Imagick::getImagePixelColor ( int $x , int $y )
Warning

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

Returns the color of the specified pixel.

Parameters

x

The x-coordinate of the pixel

y

The y-coordinate of the pixel

Return Values

Returns an ImagickPixel instance for the color at the coordinates given. Throw an ImagickException on error.

Errors/Exceptions

Throws ImagickException on error.


The Imagick class
PHP Manual