Package-level declarations

Types

Link copied to clipboard
data class ImageData(val bytes: ByteArray?)

A container class representing a loaded image.

Functions

Link copied to clipboard
actual suspend fun selectImage(): ImageData?
expect suspend fun selectImage(): ImageData?

Opens the platform's image picker and returns the selected ImageData, or null if the user cancels the selection.

actual suspend fun selectImage(): ImageData?
actual suspend fun selectImage(): ImageData?
Link copied to clipboard
Link copied to clipboard

Converts this ImageBitmap into a ByteArray

Link copied to clipboard

Converts this ByteArray into an ImageBitmap.

Link copied to clipboard
fun ImageBitmap.withAspectRatio(aspectRatio: Float, scale: Boolean = false, targetHeight: Int? = null): ImageBitmap

Adjusts this ImageBitmap to a target aspect ratio.