Imagick::getImageColormapColor

(PECL imagick 2, PECL imagick 3)

Imagick::getImageColormapColorReturns the color of the specified colormap index

說明

public Imagick::getImageColormapColor(int $index): ImagickPixel

Returns the color of the specified colormap index.

參數(shù)

index

The offset into the image colormap.

返回值

成功時返回 true。

錯誤/異常

錯誤時拋出 ImagickException。