Package-level declarations
Types
Link copied to clipboard
object AndroidColor
Link copied to clipboard
Link copied to clipboard
class AndroidNativeImage(val androidBitmap: Bitmap, val originalPremultiplied: Boolean = androidBitmap.isPremultipliedSafe()) : NativeImage
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
interface BaseImageDecodingProps
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
object BrowserImage
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
object HtmlCanvas
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open class HtmlNativeImage(val texSourceBase: TexImageSource, val width: Int, val height: Int) : NativeImage
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open class ImageAnimation(val frames: List<ImageFrame>, val direction: ImageAnimation.Direction, val name: String, val layers: List<ImageLayer> = frames.flatMap { it.layerData }.map { it.layer }.distinct().sortedBy { it.index })
Link copied to clipboard
open class ImageData(val frames: List<ImageFrame>, val loopCount: Int = 0, val width: Int = frames.firstOrNull()?.width ?: 1, val height: Int = frames.firstOrNull()?.height ?: 1, val layers: List<ImageLayer> = fastArrayListOf(), val animations: List<ImageAnimation> = fastArrayListOf(), val name: String? = null) : Extra
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class ImageDecodingProps(val filename: String = "unknown", val width: Int? = null, val height: Int? = null, val premultiplied: Boolean? = null, val asumePremultiplied: Boolean = false, val requestedMaxSize: Int? = null, val debug: Boolean = false, val preferKotlinDecoder: Boolean = false, val tryNativeDecode: Boolean = true, val format: ImageFormat? = RegisteredImageFormats, val out: Bitmap? = null, var extra: ExtraType = null) : BaseImageDecodingProps, Extra
Link copied to clipboard
data class ImageEncodingProps(val filename: String = "", val quality: Double = 0.81, var extra: ExtraType = null, val depremultiplyIfRequired: Boolean = true, val init: ImageEncodingProps.() -> Unit? = null) : Extra
Link copied to clipboard
Link copied to clipboard
interface ImageFormatDecoder
Link copied to clipboard
interface ImageFormatEncoder
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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.
Link copied to clipboard
open class ImageFrameLayer(val layer: ImageLayer, slice: BmpSlice, val targetX: Int = 0, val targetY: Int = 0, val main: Boolean = true, val includeInAtlas: Boolean = true, val tilemap: TileMapData? = null)
This class is used to store the layer image from e.g. an aseprite image file.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class NativeImageResult(val image: NativeImage, val originalWidth: Int = image.width, val originalHeight: Int = image.height)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Properties
Functions
Link copied to clipboard
Link copied to clipboard
suspend fun Bitmap.encode(formats: ImageFormat = RegisteredImageFormats, props: ImageEncodingProps = 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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun AsyncInputStream.readBitmap(props: BaseImageDecodingProps = ImageDecodingProps("file.bin")): Bitmap
Link copied to clipboard
suspend fun VfsFile.readBitmapImageData(props: BaseImageDecodingProps = ImageDecodingProps.DEFAULT): ImageData
Link copied to clipboard
suspend fun VfsFile.readBitmapInfo(props: BaseImageDecodingProps = ImageDecodingProps.DEFAULT): ImageInfo?
Link copied to clipboard
suspend fun VfsFile.readBitmapListNoNative(props: BaseImageDecodingProps = ImageDecodingProps.DEFAULT): List<Bitmap>
suspend fun AsyncInputStream.readBitmapListNoNative(props: ImageDecodingProps = ImageDecodingProps.DEFAULT): List<Bitmap>
Link copied to clipboard
suspend fun VfsFile.readBitmapNative(props: BaseImageDecodingProps = ImageDecodingProps.DEFAULT): Bitmap
Link copied to clipboard
suspend fun VfsFile.readBitmapNoNative(props: BaseImageDecodingProps = ImageDecodingProps.DEFAULT): Bitmap
Link copied to clipboard
suspend fun VfsFile.readBitmapSlice(bprops: BaseImageDecodingProps, name: String? = null, atlas: MutableAtlasUnit? = null): BmpSlice
suspend fun VfsFile.readBitmapSlice(name: String? = null, atlas: MutableAtlasUnit? = null, props: BaseImageDecodingProps = ImageDecodingProps.DEFAULT): BmpSlice
Link copied to clipboard
suspend fun VfsFile.readBitmapSliceWithOrientation(props: ImageDecodingProps = ImageDecodingProps.DEFAULT, name: String? = null, atlas: MutableAtlasUnit? = null): BmpSlice
Link copied to clipboard
suspend fun AsyncInputStream.readImageData(props: BaseImageDecodingProps = ImageDecodingProps.DEFAULT): ImageData
suspend fun VfsFile.readImageData(props: BaseImageDecodingProps = ImageDecodingProps.DEFAULT, atlas: MutableAtlas<Unit>? = null): ImageData
Link copied to clipboard
suspend fun VfsFile.readImageDataContainer(props: BaseImageDecodingProps = ImageDecodingProps.DEFAULT, atlas: MutableAtlas<Unit>? = null): ImageDataContainer
Link copied to clipboard
suspend fun VfsFile.readImageInfo(props: BaseImageDecodingProps = ImageDecodingProps.DEFAULT): ImageInfo?
Link copied to clipboard
suspend fun VfsFile.readNativeImage(props: BaseImageDecodingProps = ImageDecodingProps.DEFAULT): NativeImage
suspend fun AsyncInputStream.readNativeImage(props: BaseImageDecodingProps = ImageDecodingProps.DEFAULT): NativeImage
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun VfsFile.writeBitmap(bitmap: Bitmap, format: ImageFormat, props: ImageEncodingProps = ImageEncodingProps())
Link copied to clipboard
suspend fun Bitmap.writeTo(file: VfsFile, formats: ImageFormat = RegisteredImageFormats, props: ImageEncodingProps = ImageEncodingProps()): Long
suspend fun BmpSlice.writeTo(file: VfsFile, formats: ImageFormat = RegisteredImageFormats, props: ImageEncodingProps = ImageEncodingProps()): Long