array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'imagick.getimageindex.php', 1 => 'Imagick::getImageIndex', 2 => 'Gets the index of the current active image', ), 'up' => array ( 0 => 'class.imagick.php', 1 => 'Imagick', ), 'prev' => array ( 0 => 'imagick.getimagehistogram.php', 1 => 'Imagick::getImageHistogram', ), 'next' => array ( 0 => 'imagick.getimageinterlacescheme.php', 1 => 'Imagick::getImageInterlaceScheme', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/imagick/imagick/getimageindex.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

Imagick::getImageIndex

(PECL imagick 2, PECL imagick 3)

Imagick::getImageIndexGets the index of the current active image

警告

此函数在 Imagick 3.4.4 中被 废弃,强烈建议不要应用此函数。

说明

public Imagick::getImageIndex(): int

Returns the index of the current active image within the Imagick object. This method has been deprecated. See Imagick::getIteratorIndex().

参数

此函数没有参数。

返回值

Returns an integer containing the index of the image in the stack.

错误/异常

错误时抛出 ImagickException。