(PECL imagick 2.0.0)
Imagick::getIteratorIndex — Gets the index of the current active image
Returns the index of the current active image within the Imagick object. 이 메쏘드는 Imagick을 ImageMagick 6.2.9 이상으로 컴파일 했을 때만 사용할 수 있습니다.
Returns an integer containing the index of the image in the stack. 오류 시에 ImagickException을 던집니다.
Example #1 Using Imagick::getIteratorIndex():
Create images, set and get the iterator index
<?php
$im = new Imagick();
$im->newImage(100, 100, new ImagickPixel("red"));
$im->newImage(100, 100, new ImagickPixel("green"));
$im->newImage(100, 100, new ImagickPixel("blue"));
$im->setIteratorIndex(1);
echo $im->getIteratorIndex();
?>