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.

Параметри

index

The offset into the image colormap.

Значення, що повертаються

Повертає true в разі успіху.

Помилки/виключення

Кидає ImagickException в разі помилки.