Imagick
PHP 手册

Imagick::getImagePixelColor

(PECL imagick 2.0.0)

Imagick::getImagePixelColorReturns the color of the specified pixel

说明

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

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。


Imagick
PHP 手册