decodeImageBitmap

actual fun decodeImageBitmap(imageData: ByteArray): ImageBitmap?

Android implementation for decoding image ByteArray to ImageBitmap. Uses BitmapFactory to decode the bytes and converts to Compose ImageBitmap.

expect fun decodeImageBitmap(imageData: ByteArray): ImageBitmap?

Platform-specific implementation for decoding image ByteArray to ImageBitmap. On Android, uses BitmapFactory to decode and converts to ImageBitmap. On iOS, uses UIImage and converts to ImageBitmap.

Return

ImageBitmap if decoding succeeds, null otherwise

Parameters

imageData

ByteArray containing image data (PNG, JPEG, etc.)