Checks if the object has a previous image

# Gmagick::haspreviousimage

(PECL gmagick >= Unknown)

Gmagick::haspreviousimage — Checks if the object has a previous image

### 说明

public function Gmagick::haspreviousimage(): mixed

Returns `true` if the object has more images when traversing the list in the reverse direction.

### 参数

此函数没有参数。

### 返回值

Returns `true` if the object has more images when traversing the list in the reverse direction, returns `false` if there are none.

### 错误／异常

错误时抛出 GmagickException。

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