private Bitmap getBitmapOfWebView ( final WebView webView ) { Picture picture = webView . capturePicture ( ) ; Bitmap b = Bitmap . createBitmap ( picture . getWidth ( ) , picture . getHeight ( ) , Bitmap . Config . ARGB_8888 ) ; Canvas c = new Canvas ( b ) ; picture . draw ( c ) ; return b ; }
Returns a bitmap of a given WebView .