Imagick::getImageAlphaChannel

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

Imagick::getImageAlphaChannelChecks if the image has an alpha channel

Descrição

publicImagick::getImageAlphaChannel(): bool

Returns whether the image has an alpha channel.

Parâmetros

Esta função não possui parâmetros.

Valor Retornado

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.

Erros/Exceções

Lança uma exceção ImagickException em caso de erro.

Registro de Alterações

VersãoDescrição
imagick 3.6.0 Returns a bool now; previously, an int was returned.
To Top