get

operator fun get(timestamp: ERROR CLASS: Symbol not found for JavaDuration): ImageFrame(source)
actual operator fun get(timestamp: Duration): ImageFrame(source)

Reads a frame by its timestamp.

Return

The ImageFrame at the specified timestamp.

Parameters

timestamp

The timestamp of the frame to read.

Throws

if there are no frames available.

if the timestamp is negative or exceeds the total duration of the GIF.

If the GIF data is invalid and cannot be decoded.

If an I/O error occurs.


actual operator fun get(index: Int): ImageFrame(source)

Reads a frame by its index.

Return

The ImageFrame at the specified index.

Parameters

index

The index of the frame to read.

Throws

if there are no frames available.

if the index is out of bounds.

If the GIF data is invalid and cannot be decoded.

If an I/O error occurs.

expect operator fun get(index: Int): ImageFrame(source)

Reads a frame by its index.

Return

The ImageFrame at the specified index.

Parameters

index

The index of the frame to read.

Throws

if there are no frames available.

if the index is out of bounds.

If the GIF data is invalid and cannot be decoded.

If an I/O error occurs.


expect operator fun get(timestamp: Duration): ImageFrame(source)

Reads a frame by its timestamp.

Return

The ImageFrame at the specified timestamp.

Parameters

timestamp

The timestamp of the frame to read.

Throws

if there are no frames available.

if the timestamp is negative or exceeds the total duration of the GIF.

If the GIF data is invalid and cannot be decoded.

If an I/O error occurs.

actual operator fun get(index: Int): ImageFrame(source)

Reads a frame by its index.

Return

The ImageFrame at the specified index.

Parameters

index

The index of the frame to read.

Throws

if there are no frames available.

if the index is out of bounds.

If the GIF data is invalid and cannot be decoded.

If an I/O error occurs.


actual operator fun get(timestamp: Duration): ImageFrame(source)

Reads a frame by its timestamp.

Return

The ImageFrame at the specified timestamp.

Parameters

timestamp

The timestamp of the frame to read.

Throws

if there are no frames available.

if the timestamp is negative or exceeds the total duration of the GIF.

If the GIF data is invalid and cannot be decoded.

If an I/O error occurs.