The Imagick class
PHP Manual

Imagick::setImageAlphaChannel

()

Imagick::setImageAlphaChannelSets image alpha channel

Opis

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.

Parametry

mode

One of the Imagick::ALPHACHANNEL_* constants

Zwracane wartości

Zwraca TRUE w przypadku sukcesu.

Błędy/Wyjątki

Zgłasza wyjątek ImagickException w przypadku błędu.

Zobacz też:


The Imagick class
PHP Manual