= 2.3.0, PECL imagick 3)Imagick::remapImage — Remaps image colors說(shuō)明public Imagick::remapImage(Imagick $replacement">

Imagick::remapImage

(PECL imagick 2 >= 2.3.0, PECL imagick 3)

Imagick::remapImageRemaps image colors

說(shuō)明

public Imagick::remapImage(Imagick $replacement, int $DITHER): bool

Replaces colors an image with those defined by replacement. The colors are replaced with the closest possible color. 此方法在Imagick基于ImageMagick 6.4.5以上版本編譯時(shí)可用。

參數(shù)

replacement

An Imagick object containing the replacement colors

DITHER

Refer to this list of dither method constants

返回值

成功時(shí)返回 true。

錯(cuò)誤/異常

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