Imagick::setImageColormapColor

(PECL imagick 2, PECL imagick 3)

Imagick::setImageColormapColorSets the color of the specified colormap index

說(shuō)明

public Imagick::setImageColormapColor(int $index, ImagickPixel $color): bool

Sets the color of the specified colormap index.

參數(shù)

index

color

返回值

成功時(shí)返回 true

錯(cuò)誤/異常

錯(cuò)誤時(shí)拋出 ImagickException。