标签:android style blog color strong width re c
通过定义一个画布,来获取控件的图片
public Bitmap screenShot(View view) { Bitmap bitmap = Bitmap.createBitmap(view.getWidth(), view.getHeight(), Config.ARGB_8888); Canvas canvas = new Canvas(bitmap); view.draw(canvas); return bitmap; }
标签:android style blog color strong width re c
原文地址:http://www.cnblogs.com/qinghuaideren/p/3865743.html