Imagick::getImageAlphaChannel

Checks if the image has an alpha channel

&reftitle.description; public `bool` `Imagick::getImageAlphaChannel`

Returns whether the image has an alpha channel.

&reftitle.parameters; &no.function.parameters;
&reftitle.returnvalues;

Returns &true; if the image has an alpha channel value and &false; if not, i.e. the image is RGB rather than RGBA or CMYK rather than CMYKA.

&reftitle.errors;

&imagick.imagick.throws;

&reftitle.changelog;

&Version; | &Description;
imagick 3.6.0 | Returns a &boolean; now; previously, an &integer; was returned.