Imagick
PHP Manual

Imagick::recolorImage

(No version information available, might only be in SVN)

Imagick::recolorImageRecolors image

说明

bool Imagick::recolorImage ( array $matrix )

Translate, scale, shear, or rotate image colors. This method supports variable sized matrices but normally 5x5 matrix is used for RGBA and 6x6 is used for CMYK. The last row should contain the normalized values. 此方法在Imagick基于ImageMagick 6.3.6以上版本编译时可用。

参数

matrix

The matrix containing the color values

返回值

成功时返回 TRUE

参见


Imagick
PHP Manual