0
我能够在应用中拍摄'图片截图',但我需要在该图片中截取'特定部分'的截图。请谁能帮助我这样做...谢谢... 这里是我使用的拍摄图像的屏幕截图的代码....捕捉屏幕截图图片'Android'
L1 = (LinearLayout) findViewById(R.id.LinearLayout01);
Button but = (Button) findViewById(R.id.Button01);
but.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
View v1 = L1.getRootView();
v1.setDrawingCacheEnabled(true);
Bitmap bm = v1.getDrawingCache();
BitmapDrawable bitmapDrawable = new BitmapDrawable(bm);
image = (ImageView) findViewById(R.id.ImageView01);
image.setBackgroundDrawable(bitmapDrawable);
}
});
`
检查我的答案[这里](http://stackoverflow.com/questions/8294110/taking-screenshot/8366223#8366223) – 2011-12-14 13:34:46