decodeImageBitmap

Decode an encoded image payload (PNG / JPEG / WebP) into an ImageBitmap usable by the renderer. Returns null if the bytes can't be decoded; the caller renders a placeholder instead of crashing. Implementations are platform-specific because the host graphics stack drives decoding:

  • Android: BitmapFactory.decodeByteArray(...)

  • JVM / iOS / WASM: org.jetbrains.skia.Image.makeFromEncoded(...) via skiko

Decode an encoded image payload (PNG / JPEG / WebP) into an ImageBitmap usable by the renderer. Returns null if the bytes can't be decoded; the caller renders a placeholder instead of crashing. Implementations are platform-specific because the host graphics stack drives decoding:

  • Android: BitmapFactory.decodeByteArray(...)

  • JVM / iOS / WASM: org.jetbrains.skia.Image.makeFromEncoded(...) via skiko

Decode an encoded image payload (PNG / JPEG / WebP) into an ImageBitmap usable by the renderer. Returns null if the bytes can't be decoded; the caller renders a placeholder instead of crashing. Implementations are platform-specific because the host graphics stack drives decoding:

  • Android: BitmapFactory.decodeByteArray(...)

  • JVM / iOS / WASM: org.jetbrains.skia.Image.makeFromEncoded(...) via skiko

Decode an encoded image payload (PNG / JPEG / WebP) into an ImageBitmap usable by the renderer. Returns null if the bytes can't be decoded; the caller renders a placeholder instead of crashing. Implementations are platform-specific because the host graphics stack drives decoding:

  • Android: BitmapFactory.decodeByteArray(...)

  • JVM / iOS / WASM: org.jetbrains.skia.Image.makeFromEncoded(...) via skiko

Shared between the js and wasmJs targets. Both run on top of Skiko for the canvas backend, so the encoded-bytes → ImageBitmap path is identical — org.jetbrains.skia.Image.makeFromEncoded(...).toComposeImageBitmap() works on both. Keeping a single actual here avoids the maintenance cost of two identical files and the risk of one drifting from the other.