Types

Link copied to clipboard
open class AseBitmapCell(val bmp: Bitmap, val x: Int, val y: Int, val opacity: Int) : ASE.AseEntity, ASE.AseCell
Link copied to clipboard
Link copied to clipboard
interface AseEntity
Link copied to clipboard
open class AseFrame(val index: Int) : ASE.AseEntity
Link copied to clipboard
open class AseImage : ASE.AseEntity
Link copied to clipboard
open class AseLayer(val originalAseIndex: Int, var index: Int, val name: String, val flags: Int, val type: ImageLayer.Type, val childLevel: Int, val blendModeInt: Int, val opacity: Int, val tilesetIndex: Int) : ImageLayer, ASE.AseEntity
Link copied to clipboard
open class AseLayerCell(val frameIndex: Int, val layer: ASE.AseLayer, val cell: ASE.AseCell) : ASE.AseEntity
Link copied to clipboard
open class AseLinkedCell(val linkedCell: ASE.AseCell, val x: Int, val y: Int, val opacity: Int) : ASE.AseEntity, ASE.AseCell
Link copied to clipboard
open class AsePalette(val colors: RgbaArray, val names: Array<String?>? = null, val changeStart: Int = 0, val changeEnd: Int = 0) : Palette, ASE.AseEntity
Link copied to clipboard
open class AseSlice(val name: String, val hasNinePatch: Boolean, val hasPivotInfo: Boolean) : ASE.AseEntity
Link copied to clipboard
open class AseSliceKey(val frameIndex: Int, val sliceXOrigin: Int, val sliceYOrigin: Int, val sliceWidth: Int, val sliceHeight: Int, val centerXPos: Int, val centerYPos: Int, val centerWidth: Int, val centerHeight: Int, val pivotX: Int, val pivotY: Int)
Link copied to clipboard
open class AseTag(val fromFrame: Int, val toFrame: Int, val directionByte: Int, val tagColor: RGBA, val tagName: String) : ASE.AseEntity
Link copied to clipboard
open class AseTilemapCell(val data: IntArray2, val tileBitmask: Int, val bitmaskXFlip: Int, val bitmaskYFlip: Int, val bitmask90CWFlip: Int, val x: Int, val y: Int, val opacity: Int) : ASE.AseEntity, ASE.AseCell
Link copied to clipboard
data class AseTileset(val tilesetId: Int, val ntiles: Int, val tileWidth: Int, val tileHeight: Int, val baseIndex: Int, val tilesetName: String, val tiles: List<BmpSlice>)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun check(s: SyncStream, props: ImageDecodingProps = ImageDecodingProps.DEFAULT): Boolean
Link copied to clipboard
suspend fun decode(file: VfsFile): Bitmap
open suspend override fun decode(file: VfsFile, props: ImageDecodingProps): Bitmap
suspend fun decode(s: AsyncStream, props: ImageDecodingProps = ImageDecodingProps.DEFAULT): Bitmap
suspend fun decode(s: AsyncStream, filename: String): Bitmap
fun decode(s: SyncStream, props: ImageDecodingProps = ImageDecodingProps.DEFAULT): Bitmap

fun decode(data: ByteArray, props: ImageDecodingProps = ImageDecodingProps.DEFAULT): Bitmap

Decodes a given data byte array to a bitmap based on the image format with optional extra prop properties.

Link copied to clipboard
open override fun decodeHeader(s: SyncStream, props: ImageDecodingProps): ImageInfo?
Link copied to clipboard
suspend fun decodeHeaderSuspend(file: VfsFile, props: ImageDecodingProps = ImageDecodingProps.DEFAULT): ImageInfo?
open suspend fun decodeHeaderSuspend(s: AsyncStream, props: ImageDecodingProps = ImageDecodingProps.DEFAULT): ImageInfo?
Link copied to clipboard
open suspend override fun decodeSuspend(data: ByteArray, props: ImageDecodingProps): Bitmap
Link copied to clipboard
fun encode(bitmap: Bitmap, props: ImageEncodingProps = ImageEncodingProps("unknown")): ByteArray
fun encode(image: ImageData, props: ImageEncodingProps = ImageEncodingProps("unknown")): ByteArray
fun encode(frames: List<ImageFrame>, props: ImageEncodingProps = ImageEncodingProps("unknown")): ByteArray
Link copied to clipboard
open suspend override fun encodeSuspend(image: ImageDataContainer, props: ImageEncodingProps): ByteArray
Link copied to clipboard
suspend fun ImageFormatEncoder.encodeSuspend(bitmap: Bitmap, props: ImageEncodingProps = ImageEncodingProps("unknown")): ByteArray
Link copied to clipboard
Link copied to clipboard
operator fun ImageFormat.plus(format: ImageFormat): ImageFormat
operator fun ImageFormat.plus(formats: List<ImageFormat>): ImageFormat
Link copied to clipboard
suspend fun read(file: VfsFile): Bitmap
suspend fun read(file: VfsFile, props: ImageDecodingProps = ImageDecodingProps.DEFAULT): ImageData
fun read(s: SyncStream, props: ImageDecodingProps = ImageDecodingProps.DEFAULT): Bitmap
fun read(s: SyncStream, filename: String = "unknown"): Bitmap
fun read(s: ByteArray, props: ImageDecodingProps = ImageDecodingProps.DEFAULT): Bitmap
fun read(s: ByteArray, filename: String): Bitmap
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

This function reads the Aseprite image file, decodes its content and stores selected details into an ImageDataContainer object.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun ImageFormat.toProps(props: ImageDecodingProps = ImageDecodingProps.DEFAULT): ImageDecodingProps
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
open fun writeImage(image: ImageData, s: SyncStream, props: ImageEncodingProps)