Imagick::getInterlaceScheme
Imagick::getNumberImages
The Imagick class
PHP Manual

# Imagick::getIteratorIndex

(PECL imagick 2.0.0)

Imagick::getIteratorIndex — Gets the index of the current active image

### 설명

int Imagick::getIteratorIndex ( void )

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();
?>`

### 참고

- Imagick::setIteratorIndex() - Set the iterator position
- Imagick::getImageIndex() - Gets the index of the current active image
- Imagick::setImageIndex() - Set the iterator position

Imagick::getInterlaceScheme
Imagick::getNumberImages
The Imagick class
PHP Manual