Roger Kreienbühl
03/18/2024, 8:20 AMImage.makeFromEncoded(this).toComposeImageBitmap()
Is there a way to get a mutable ImageBitmap instead of immutable one?
I try to draw this on a Canvas and always get the error kotlin.IllegalArgumentException: Cannot draw on immutable ImageBitmap
mohamed rejeb
03/18/2024, 8:31 AMimage.toMutableBitmap().asComposeImageBitmap()
Roger Kreienbühl
03/18/2024, 9:40 AMBitmap
directly, but android Bitmap and skia Bitmap aren’t compatible as type when using in common code (I am relatively new to kotlin multiplatform).mohamed rejeb
03/18/2024, 9:52 AMasComposeImageBitmap
on the Bitmap should keep it mutable so you can have the compose ImageBitmap that you can use in common.
Let me know if you still have any issues.