The Imagick class
PHP Manual

Imagick::setImageAlphaChannel

()

Imagick::setImageAlphaChannelSets image alpha channel

Описание

bool Imagick::setImageAlphaChannel ( int $mode )

Activate or deactivate image alpha channel. The mode is one of the Imagick::ALPHACHANNEL_* constants. This method is available if Imagick has been compiled against ImageMagick version 6.3.8 or newer.

Параметри

mode

One of the Imagick::ALPHACHANNEL_* constants

Връщани стойности

Връща TRUE при успех.

Грешки/Изключения

Хвърля ImagickException при грешка.

Вж. също


The Imagick class
PHP Manual