Imagick::getImagePixelColor

(PECL imagick 2, PECL imagick 3)

Imagick::getImagePixelColorReturns the color of the specified pixel

Descrizione

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

Returns the color of the specified pixel.

Elenco dei parametri

x

The x-coordinate of the pixel

y

The y-coordinate of the pixel

Valori restituiti

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

Errori/Eccezioni

Lancia una ImagickException in caso di errore.