The Imagick class
PHP Manual

Imagick::setImageAlphaChannel

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

Imagick::setImageAlphaChannelSets image alpha channel

说明

bool Imagick::setImageAlphaChannel ( int $mode )

Activate or deactivate image alpha channel. The mode is one of the Imagick::ALPHACHANNEL_* constants. This method is available if Imagick has been compiled against ImageMagick version 6.3.8 or newer.

参数

mode

One of the Imagick::ALPHACHANNEL_* constants

返回值

Returns TRUE on success.

错误/异常

Throws ImagickException on error.

参见


The Imagick class
PHP Manual