protected void onActivityResult(int requestCode, int resultCode, Intent data) {
// TODO Auto-generated method stub
super.onActivityResult(requestCode, resultCode, data);
if (resultCode == RESULT_OK)
{
Bundle extras = data.getExtras();
Bitmap bmp = (Bitmap) extras.get("data");
imageiewImageCaptured.setImageBitmap(bmp);
String strWidth = String.valueOf(bmp.getWidth());
String strHeight = String.valueOf(bmp.getHeight());
Toast.makeText(AndroidImageCapture.this,
"Width: " + strWidth + "\n" +
"Height: " + strHeight,
Toast.LENGTH_LONG).show();
}
}
這是正常的, 在隨後的文章我將展示如何指定儲存圖像的路徑, 以得到全尺寸位圖.
沒有留言:
發佈留言