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
m
mohamed rejeb
03/18/2024, 8:31 AM
You also create your own custom Image.toBitmap method to create a mutable Bitmap, follow the same Compose internal implementation and remove the line where they are setting the bitmap to be immutable.
And then you will have something like this: