AndroidImplementation

An Android-specific implementation of the BitmapConverter interface.

This implementation leverages the native BitmapFactory to efficiently decode raw compressed image data (such as JPEG, PNG, or WEBP) into a platform-native Bitmap, which is then wrapped into a Compose-compatible ImageBitmap.

It is marked as internal to encapsulate the platform-specific decoding logic while allowing the getBitmapConverter actual function to instantiate it.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun bitmapFromBytes(byteArray: ByteArray): ImageBitmap?

Decodes a byte array into an ImageBitmap using the Android platform's BitmapFactory.decodeByteArray.