Imagick::getImagePixelColor

(PECL imagick 2, PECL imagick 3)

Imagick::getImagePixelColorReturns the color of the specified pixel

Опис

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

Returns the color of the specified pixel.

Параметри

x

The x-coordinate of the pixel

y

The y-coordinate of the pixel

Значення, що повертаються

Returns an ImagickPixel instance for the color at the coordinates given.

Помилки/виключення

Кидає ImagickException в разі помилки.