decode

actual fun decode(bytes: ByteArray): ImageBitmap?
expect fun decode(bytes: ByteArray): ImageBitmap?
actual fun decode(bytes: ByteArray): ImageBitmap?
actual fun decode(bytes: ByteArray): ImageBitmap?

Compose/JS rides on Skiko (CanvasKit), which bundles Skia's image codecs — so decoding is synchronous here too, no createImageBitmap Promise dance. Falls back to null (→ placeholder rectangle) if Skia can't parse the bytes.

actual fun decode(bytes: ByteArray): ImageBitmap?
actual fun decode(bytes: ByteArray): ImageBitmap?
actual fun decode(bytes: ByteArray): ImageBitmap?