Home > PHP > Function > > Imagick::getIteratorIndex()

Imagick::getIteratorIndex()

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

Syntax

int Imagick::getIteratorIndex ()

Arguments

-

Description

Returns the index of the current active image within the Imagick object. This method is available if Imagick has been compiled against ImageMagick version 6.2.9 or newer.

Version

PHP PECL imagick 2.0.0

Return value

Returns an integer containing the index of the image in the stack. Throw an ImagickExceptionon error.