Is it possible to create a bitmap image from a view or the screen in Android?
+1
A:
There are a couple of ways to do it. A simple one is to do the following:
Bitmap b = Bitmap.createBitmap(theView.getWidth(), theView.getHeight(), Bitmap.Config.ARGB_8888);
Canvas c = new Canvas(b);
theView.draw(c);
Romain Guy
2010-06-22 16:27:40
Thanks Romain! Worked like a charm. Glad to see you guys are still around answering questions.
hgpc
2010-06-22 17:48:53