decodeRaw

actual fun decodeRaw(rgba: ByteArray, width: Int, height: Int): ImageBitmap?
expect fun decodeRaw(rgba: ByteArray, width: Int, height: Int): ImageBitmap?

Build a bitmap from already-decoded RGBA8888 pixels (R,G,B,A per pixel, row-major, width*height*4 bytes). Unlike decode this is fully synchronous on every platform — the samples are already in hand — so it works on JS too. Used for RAW (FlateDecode) PDF images.

actual fun decodeRaw(rgba: ByteArray, width: Int, height: Int): ImageBitmap?
actual fun decodeRaw(rgba: ByteArray, width: Int, height: Int): ImageBitmap?

Raw pixels are synchronous, so Skiko (which Compose/JS rides on) can build the bitmap directly.

actual fun decodeRaw(rgba: ByteArray, width: Int, height: Int): ImageBitmap?
actual fun decodeRaw(rgba: ByteArray, width: Int, height: Int): ImageBitmap?
actual fun decodeRaw(rgba: ByteArray, width: Int, height: Int): ImageBitmap?