Imagick::getImagePixelColor

(PECL imagick 2, PECL imagick 3)

Imagick::getImagePixelColorReturns the color of the specified pixel

Descrição

publicImagick::getImagePixelColor(int$x, int$y): ImagickPixel

Returns the color of the specified pixel.

Parâmetros

x

The x-coordinate of the pixel

y

The y-coordinate of the pixel

Valor Retornado

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

Erros/Exceções

Lança uma exceção ImagickException em caso de erro.

To Top