The Imagick class
PHP 手册

Imagick::setImageMatte

(PECL imagick 2.0.0)

Imagick::setImageMatteSets the image matte channel

说明

bool Imagick::setImageMatte ( bool $matte )

Sets the image matte channel. This method is available if Imagick has been compiled against ImageMagick version 6.2.9 or newer.

参数

matte

True activates the matte channel and false disables it.

返回值

Returns TRUE on success.


The Imagick class
PHP 手册