Code example for Picture

Methods: draw, getHeight, getWidth

0
		} 
 
		final Bitmap bitmap = Bitmap.createBitmap(this.mWidth, this.mHeight, pBitmapConfig);
		final Canvas canvas = new Canvas(bitmap);
 
		final float scaleX = (float)this.mWidth / this.mPicture.getWidth();
		final float scaleY = (float)this.mHeight / this.mPicture.getHeight();
		canvas.scale(scaleX, scaleY, 0, 0);
 
		picture.draw(canvas);
 
		return bitmap;
	} 
 
	// =========================================================== 
	// Methods 
	// =========================================================== 
 
	// =========================================================== 
	// Inner and Anonymous Classes 
	// ===========================================================