List of usage examples for android.webkit WebView getDrawingCache
@Deprecated
public Bitmap getDrawingCache()
Calling this method is equivalent to calling getDrawingCache(false)
.
From source file:Main.java
public static Bitmap getBitmapForVisibleRegion(WebView webview) { Bitmap returnedBitmap = null;/*from www . j av a 2 s . co m*/ webview.setDrawingCacheEnabled(true); returnedBitmap = Bitmap.createBitmap(webview.getDrawingCache()); webview.setDrawingCacheEnabled(false); return returnedBitmap; }