public void Initialize(View Target) {
paint = new Paint();
LayoutParams lp = Target.getLayoutParams();
Bitmap bitmap = Bitmap.createBitmap(lp.width , lp.height , Config.ARGB_8888);
BitmapDrawable bd = new BitmapDrawable(bitmap);
canvas = new Canvas(bitmap);
if (Target.getBackground() != null) {
Target.getBackground().setBounds(0, 0, lp.width, lp.height);
Target.getBackground().draw(canvas);
}
Target.setBackgroundDrawable(bd);
bw = new BitmapWrapper();
bw.setObject(bitmap);
}