array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'de', ), 'this' => array ( 0 => 'gmagick.separateimagechannel.php', 1 => 'Gmagick::separateimagechannel', 2 => 'Separates a channel from the image', ), 'up' => array ( 0 => 'class.gmagick.php', 1 => 'Gmagick', ), 'prev' => array ( 0 => 'gmagick.scaleimage.php', 1 => 'Gmagick::scaleimage', ), 'next' => array ( 0 => 'gmagick.setcompressionquality.php', 1 => 'Gmagick::setCompressionQuality', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/gmagick/gmagick/separateimagechannel.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

Gmagick::separateimagechannel

(PECL gmagick >= Unknown)

Gmagick::separateimagechannelSeparates a channel from the image

Beschreibung

public Gmagick::separateimagechannel(int $channel): Gmagick

Separates a channel from the image and returns a grayscale image. A channel is a particular color component of each pixel in the image.

Parameter-Liste

channel

One of the Channel constant (Gmagick::CHANNEL_*).

Rückgabewerte

The Gmagick object.

Fehler/Exceptions

Wirft bei einem Fehler eine GmagickException.