Varun

Hi I am Varun.

varun

Hobbies : Watching Cricket, Playing CS, Playing Harmonica :P

Favorite webpage: Google, NotionInk Blog, My Work

Code to convert an View to a Bitmap.

public Bitmap drawView(View v)
    {
    Bitmap bp = Bitmap.createBitmap(v.getWidth(), v.getHeight(), Config.ARGB_8888);
    Canvas c = new Canvas(bp);
    v.draw(c);
    return bp;
    }