array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'imagick.setimagecolormapcolor.php', 1 => 'Imagick::setImageColormapColor', 2 => 'Sets the color of the specified colormap index', ), 'up' => array ( 0 => 'class.imagick.php', 1 => 'Imagick', ), 'prev' => array ( 0 => 'imagick.setimageclipmask.php', 1 => 'Imagick::setImageClipMask', ), 'next' => array ( 0 => 'imagick.setimagecolorspace.php', 1 => 'Imagick::setImageColorspace', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/imagick/imagick/setimagecolormapcolor.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

Imagick::setImageColormapColor

(PECL imagick 2, PECL imagick 3)

Imagick::setImageColormapColorSets the color of the specified colormap index

说明

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

Sets the color of the specified colormap index.

参数

index

color

返回值

成功时返回 true

错误/异常

错误时抛出 ImagickException。