Imagick::getImagePixelColor

(PECL imagick 2.0.0)

Imagick::getImagePixelColorReturns the color of the specified pixel

说锟斤拷

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锟斤拷