AnimatedImage

Represents an animated image format. This differentiates from Video since it does not contain audio.

Properties

Link copied to clipboard
abstract val creationDate: Long

The creation date of this piece of media, in milliseconds past the Unix Epoch.

Link copied to clipboard
abstract val extension: String

The file extension used when exporting the piece of media.

Link copied to clipboard
abstract val fps: Int

The frames per second of the animated image.

Link copied to clipboard
abstract val frames: List<Image>

Gets the frames inside this animated image.

Link copied to clipboard
abstract val height: Int

The height of the piece of media.

Link copied to clipboard
abstract val name: String

The name of the piece of media.

Link copied to clipboard
open val size: Int

The size of the piece of media, or width x height.

Link copied to clipboard
abstract val width: Int

The width of the piece of media.

Functions

Link copied to clipboard
abstract operator fun get(index: Int): Image

Gets the frame at the specified index.

Link copied to clipboard
open operator override fun iterator(): Iterator<Image>
Link copied to clipboard
abstract fun toByteArray(): ByteArray

Gets this media as a byte array.