ImageFrame

open class ImageFrame(val index: Int, val time: TimeSpan = 0.seconds, val layerData: List<ImageFrameLayer> = emptyList()) : Extra

This class defines one frame of a sprite object like e.g. an aseprite image file. It contains info about all layer images which are used in that frame.

Parameters

index

The index of the frame within the sprite (e.g. aseprite file).

time

When this frame is used in an animation this defines the time the frame should be displayed.

layerData

This is a list of all layers which this frame contains.

Constructors

Link copied to clipboard
constructor(index: Int, time: TimeSpan = 0.seconds, layerData: List<ImageFrameLayer> = emptyList())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val area: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override var extra: ExtraType
Link copied to clipboard
Link copied to clipboard
val height: Int
Link copied to clipboard
Link copied to clipboard
val index: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val name: String?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val width: Int

Functions

Link copied to clipboard
open override fun toString(): String