ImageData

data class ImageData(val bytes: ByteArray?)

A container class representing a loaded image.

Example usage:

val bitmap = image.value?.bytes?.toImageBitMap()
bitmap?.let {
Image(
bitmap = it,
contentDescription = null
)
}

Constructors

Link copied to clipboard
constructor(bytes: ByteArray?)

Properties

Link copied to clipboard

The raw bytes read from the file