Imagick
PHP Manual

Imagick::getImageAlphaChannel

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

Imagick::getImageAlphaChannelGets the image alpha channel

说明

int Imagick::getImageAlphaChannel ( void )

Gets the image alpha channel value. The returned value is one of the alpha channel constants. 此方法在Imagick基于ImageMagick 6.4.0以上版本编译时可用。

返回值

Returns a constant defining the current alpha channel value. Refer to this list of alpha channel constants.

错误/异常

错误时抛出 ImagickException。


Imagick
PHP Manual