# Gmagick::getimageindex

(PECL gmagick >= Unknown)

Gmagick::getimageindex — Gets the index of the current active image

### 说明

public Gmagick::getimageindex(): int

Returns the index of the current active image within the Gmagick object.

### 参数

此函数没有参数。

### 返回值

Index of current active image.

### 错误／异常

错误时抛出 GmagickException。

`↑` and `↓` to navigate • `Enter` to select • `Esc` to close • `/` to open