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。