获取屏幕截图

1、 Bitmap Bmp = Bitmap.createBitmap(w, h, Config.ARGB_8888);
View decorview = this.getWindow().getDecorView();


decorview.setDrawingCacheEnabled(true);

Bmp = decorview.getDrawingCache();

2、Surface.screenshot

你可能感兴趣的:(获取屏幕截图)