Home > PHP > Function > > Imagick::getImagePixelColor()

Imagick::getImagePixelColor()

Imagick::getImagePixelColor - Returns the color of the specified pixel

Syntax

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

Arguments

  • x - The x-coordinate of the pixel
  • y - The y-coordinate of the pixel

Description

Returns the color of the specified pixel.

Version

PHP PECL imagick 2.0.0

Return value

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