Imagick::setImageAlphaChannel
(PECL imagick 2 >= 2.1.0, PECL imagick 3)
Imagick::setImageAlphaChannel — Sets image alpha channel
Описание
public Imagick::setImageAlphaChannel
( int
$mode
) : bool
Activate or deactivate image alpha channel. The mode
is one of the Imagick::ALPHACHANNEL_* constants.
Этот метод доступен, если Imagick был скомпилирован с версией ImageMagick 6.3.8 или старше.
Список параметров
-
mode -
One of the
Imagick::ALPHACHANNEL_*constants
Возвращаемые значения
В случае успешной работы возвращает true.
Ошибки
Вызывает ImagickException при ошибке.
Смотрите также
- Imagick::setImageMatte() - Sets the image matte channel
- Imagick Alpha Channel Constants