Php/docs/gmagick.setimagechanneldepth

提供:Dev Guides
< Php
移動先:案内検索

Gmagick::setimagechanneldepth

(PECL gmagick >= Unknown)

Gmagick::setimagechanneldepth特定の画像チャネルの深度を設定する


説明

public Gmagick::setimagechanneldepth ( int $channel , int $depth ) : Gmagick

特定の画像チャネルの深度を設定します。


パラメータ

channel
抽出するチャネル。RedChannel、GreenChannel、BlueChannel、OpacityChannel、 CyanChannel、MagentaChannel、YellowChannel、BlackChannel。
depth
深度を表すビット数。


返り値

成功した場合に Gmagick オブジェクトを返します。


エラー / 例外

エラー時に GmagickException をスローします。