The photo lose its quality when it appears into the ImageView

后端 未结 2 1126
南方客
南方客 2021-01-28 07:10

excuse me for any grammatical errors.

I made an application that allow you to take a picture and after you clicked \"Ok\", the picture appear in an ImageView. Now, I don

2条回答
  •  长发绾君心
    2021-01-28 07:46

    When you call Bitmap SkimmedImgData = (Bitmap) data.getExtras().get("data");, and then set the image using SkimmedImageImg.setImageBitmap(SkimmedImgData);, you're only setting the thumbnail of the image you took, this is why the quality is so distorted. You can follow this tutorial, which will show you how to save the full size image, look under the header Save the Full-size Photo.

提交回复
热议问题