array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'gmagick.getimagecolors.php', 1 => 'Gmagick::getimagecolors', ), 'up' => array ( 0 => 'class.gmagick.php', 1 => 'Gmagick', ), 'prev' => array ( 0 => 'gmagick.getimagechanneldepth.php', 1 => 'Gmagick::getimagechanneldepth', ), 'next' => array ( 0 => 'gmagick.getimagecolorspace.php', 1 => 'Gmagick::getimagecolorspace', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/gmagick/gmagick/getimagecolors.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL gmagick >= Unknown)
Gmagick::getimagecolors — Returns the color of the specified colormap index
此函数没有参数。
The number of colors in image.
错误时抛出 GmagickException。