https://kotlinlang.org logo
#compose-android
Title
# compose-android
j

jordond

12/13/2023, 7:20 PM
Anyone know how to take a
Painter
and get a`ImageBitmap` from it?
BitmapPainter.image
is private. I’ve also tried using a
Canvas
and a
CanvasDrawScope
then drawing to the canvas. And that works, except for Hardware bitmaps. I Google’d around and found out about
PixelCopy
but I’m not sure how to get that to work in Compose land.
👀 1
y

yschimke

12/13/2023, 7:24 PM
2 Views