Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
class AndroidContext2dRenderer(val bmp: Bitmap, val antialiasing: Boolean) : Renderer
Link copied to clipboard
class AndroidNativeImage(val androidBitmap: Bitmap, val originalPremultiplied: Boolean = androidBitmap.isPremultipliedSafe()) : NativeImage
Link copied to clipboard
Link copied to clipboard
object AVIFInfo : ISOBMFF
Link copied to clipboard
Link copied to clipboard
open class BitmapNativeImage(val bitmap: Bitmap32) : NativeImage
Link copied to clipboard
object BMP : ImageFormat
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
object DDS : ImageFormat
Link copied to clipboard
abstract class DXT(val format: String, val premultiplied: Boolean, val blockSize: Int) : ImageFormat
Link copied to clipboard
object DXT1 : DXT1Base
Link copied to clipboard
open class DXT1Base(val format: String, val premultiplied: Boolean) : DXT
Link copied to clipboard
object DXT2 : DXT2_3
Link copied to clipboard
open class DXT2_3(val format: String, val premultiplied: Boolean) : DXT
Link copied to clipboard
object DXT3 : DXT2_3
Link copied to clipboard
object DXT4 : DXT4_5
Link copied to clipboard
open class DXT4_5(val format: String, val premultiplied: Boolean) : DXT
Link copied to clipboard
object DXT5 : DXT4_5
Link copied to clipboard
object EXIF
Link copied to clipboard
object FAKE : ImageFormat
Link copied to clipboard
inline class Fixed32(val value: Int)
Link copied to clipboard
object GIF : ImageFormat
Link copied to clipboard
object GifDec
Link copied to clipboard
object HEICInfo : ISOBMFF
Link copied to clipboard
object HtmlCanvas
Link copied to clipboard
Link copied to clipboard
object HtmlImage
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
object ICO : ImageFormat
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
open class ImageDataContainer(val imageDatas: List<ImageData>)
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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract class ImageFormatSuspend(exts: String) : ImageFormat
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
open class ImageInfo : Sizeable, Extra
Link copied to clipboard
open class ImageLayer(var index: Int, val name: String?, val type: ImageLayer.Type = Type.NORMAL)
Link copied to clipboard
Link copied to clipboard
open class ISOBMFF(exts: String) : ImageFormatSuspend
Link copied to clipboard
Link copied to clipboard
object KRA : ImageFormat
Link copied to clipboard
data class NativeImageResult(val image: NativeImage, val originalWidth: Int = image.width, val originalHeight: Int = image.height)
Link copied to clipboard
object PNG : ImageFormat
Link copied to clipboard
object PSD : ImageFormat
Link copied to clipboard
object QOI : ImageFormat
Link copied to clipboard
object SVG : ImageFormat
Link copied to clipboard
object TGA : ImageFormat
Link copied to clipboard
object WEBP : ImageFormat

Properties

Functions

Link copied to clipboard
suspend fun displayImage(bmp: Bitmap, kind: Int = 0)
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
fun ImageInfo(block: ImageInfo.() -> Unit): ImageInfo
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 VfsFile.readBitmap(props: BaseImageDecodingProps = ImageDecodingProps.DEFAULT): Bitmap
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
suspend fun Bitmap.showImageAndWait(kind: Int = 0)
suspend fun SizedDrawable.showImageAndWait(kind: Int = 0)
suspend fun BmpSlice.showImageAndWait(kind: Int = 0)
Link copied to clipboard
suspend fun ImageData.showImagesAndWait(kind: Int = 0)
suspend fun List<Bitmap>.showImagesAndWait(kind: Int = 0)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun ImageFormat.toProps(props: ImageDecodingProps = ImageDecodingProps.DEFAULT): ImageDecodingProps
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