是否有可能创建一个视图的位图图像或Android的屏幕?
Is it possible to create a bitmap image from a view or the screen in Android?
有几个方法可以做到这一点。一个简单的一种是做到以下几点:
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);