toPlatformImageBitmap

Extension function to convert a ByteArray to an ImageBitmap using the platform-specific converter.

Return

The converted ImageBitmap, or null if the conversion fails.