drawToBitmap

fun <T : View> T.drawToBitmap(bitmap: Bitmap): Canvas