(PECL imagick 2 >= 2.3.0, PECL imagick 3)

Imagick::getImageAlphaChannelGets the image alpha channel


public Imagick::getImageAlphaChannel(): int

Gets the image alpha channel value. The returned value is one of the alpha channel constants. This method is available if Imagick has been compiled against ImageMagick version 6.4.0 or newer.


This function has no parameters.

Return Values

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


Throws ImagickException on error.

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top