bitmapFromBytes

open override fun bitmapFromBytes(byteArray: ByteArray): ImageBitmap?(source)

Decodes a byte array into an ImageBitmap using Skia's image decoding capabilities.

Return

The decoded ImageBitmap, or null if the byte array is invalid or decoding fails.

Parameters

byteArray

The source byte array representing the encoded image data (e.g., PNG, JPEG).