Imagick::getImageAlphaChannel

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

Imagick::getImageAlphaChannelChecks if the image has an alpha channel

Beschreibung

public Imagick::getImageAlphaChannel(): bool

Returns whether the image has an alpha channel.

Parameter-Liste

Diese Funktion besitzt keine Parameter.

Rückgabewerte

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.

Fehler/Exceptions

Wirft ImagickException bei Fehlern.

Changelog

Version Beschreibung
imagick 3.6.0 Returns a Boolean now; previously, an Integer was returned.
add a note add a note

User Contributed Notes

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