php8.5
Home/ Manual/ imagick / imagick/ Imagick::setImageAlphaChannel

Imagick::setImageAlphaChannel

PHP function Edit on GitHub ✎

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

Sets image alpha channel

Description

Imagick::setImageAlphaChannel(int $mode): bool

Activate or deactivate image alpha channel. The mode is one of the Imagick::ALPHACHANNEL_* constants. 0x638

Parameters

mode

One of the Imagick::ALPHACHANNEL_* constants

Return Values

Success

Errors/Exceptions

Throws

See Also

Source: reference/imagick/imagick/setimagealphachannel.xml · from the official PHP manual (php/doc-en)