Abdalla Hassanin
07/28/2021, 5:41 PM//take screenshot of the view added as an input argument
fun takeScreenShot(view: View) : Bitmap {
val bitmap = Bitmap.createBitmap(
view.width,
view.height,
Bitmap.Config.ARGB_8888
)
val canvas = Canvas(bitmap)
view.draw(canvas)
return bitmap
}
What is the equivalent of this in Jetpack compose?Landry Norris
07/28/2021, 5:45 PMZach Klippenstein (he/him) [MOD]
07/28/2021, 5:45 PMComposeView
directly to do that, don’t need another container viewMark Murphy
07/28/2021, 9:20 PM