https://kotlinlang.org logo
s

Sololo

09/18/2021, 3:15 AM
how to convert Compose View to Bitmap?
w

Waqas Tahir

09/18/2021, 9:03 AM
There is a feature request for this https://issuetracker.google.com/issues/198182887 And look into this as well https://issuetracker.google.com/issues/180881629 You can do this but no direct way !
c

Csaba Kozák

09/20/2021, 8:33 AM
We implemented this with the help of the following article: https://proandroiddev.com/create-bitmaps-from-jetpack-composables-bdb2c95db51
m

Marco Pierucci

04/02/2022, 2:20 PM
Hello, really late to the party. I’m trying to follow this article, but In my usecase I jave a drawing view and need to capture a bitmap only when “Capture” CTA is pressed, any sugestión im how to tackle this?
175 Views