array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'gmagick.setimagedepth.php', 1 => 'Gmagick::setimagedepth', 2 => 'Sets the image depth', ), 'up' => array ( 0 => 'class.gmagick.php', 1 => 'Gmagick', ), 'prev' => array ( 0 => 'gmagick.setimagedelay.php', 1 => 'Gmagick::setimagedelay', ), 'next' => array ( 0 => 'gmagick.setimagedispose.php', 1 => 'Gmagick::setimagedispose', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/gmagick/gmagick/setimagedepth.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

Gmagick::setimagedepth

(PECL gmagick >= Unknown)

Gmagick::setimagedepthSets the image depth

说明

public Gmagick::setimagedepth(int $depth): Gmagick

Sets the image depth.

参数

depth

The image depth in bits: 8, 16, or 32.

返回值

The Gmagick object.

错误/异常

错误时抛出 GmagickException