Package-level declarations

Properties

Link copied to clipboard

The pixel data of this ImageBitmap. Each element in the array represents a pixel in ARGB format, going row by row from top to bottom.

Functions

Link copied to clipboard
actual fun createImageBitmap(argb: IntArray, width: Int, height: Int): ImageBitmap

Creates an ImageBitmap from ARGB data.

expect fun createImageBitmap(argb: IntArray, width: Int, height: Int): ImageBitmap

Creates an ImageBitmap from ARGB data.

actual fun createImageBitmap(argb: IntArray, width: Int, height: Int): ImageBitmap

Creates an ImageBitmap from ARGB data.

Link copied to clipboard

Remember an ImageBitmap for the given frame. The bitmap is recreated only when the frame instance changes.

Link copied to clipboard
Link copied to clipboard
fun GifEncoder.writeFrame(image: ImageBitmap, duration: Duration)

Writes a single frame to the GIF. The frame may be skipped if the duration is below minimumFrameDurationCentiseconds, or if the frame is the same as or similar enough to the previous frame, determined by colorDifferenceTolerance, quantizedColorDifferenceTolerance, and colorSimilarityChecker.

suspend fun ParallelGifEncoder.writeFrame(image: ImageBitmap, duration: Duration)

Writes a single frame to the GIF. The frame may be skipped if the duration is below minimumFrameDurationCentiseconds, or if the frame is the same as or similar enough to the previous frame, determined by colorDifferenceTolerance, quantizedColorDifferenceTolerance, and colorSimilarityChecker.