Code example for Picture

Methods: drawgetHeightgetWidth

0
	 *  
	 */ 
 
	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 View. 
	 *  
	 * @param view the view to save a bitmap from 
	 * @return a bitmap of the given view 
	 *  
	 */ 
 
	private Bitmap getBitmapOfView(final View view){
Contextual code suggestions in your IDE  Get Codota for Java