php Imagick::getImageAlphaChannel 返回值列表

Imagick::getImageAlphaChannel

函数说明

获取图像的alpha通道值,为以下常量之一 alpha channel constants. 此方法在Imagick基于ImageMagick 6.4.0以上版本编译时可用。

返回值

该函数返回值常量及对应的常量名称如下:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
int(0)            Imagick::CHANNEL_UNDEFINED
int(1) Imagick::CHANNEL_RED
int(1) Imagick::CHANNEL_GRAY
int(1) Imagick::CHANNEL_CYAN
int(2) Imagick::CHANNEL_GREEN
int(2) Imagick::CHANNEL_MAGENTA
int(4) Imagick::CHANNEL_BLUE
int(4) Imagick::CHANNEL_YELLOW
int(8) Imagick::CHANNEL_ALPHA
int(8) Imagick::CHANNEL_OPACITY
int(8) Imagick::CHANNEL_MATTE
int(32) Imagick::CHANNEL_BLACK
int(32) Imagick::CHANNEL_INDEX
int(134217727) Imagick::CHANNEL_ALL
int(134217719) Imagick::CHANNEL_DEFAULT