Solution to blurring of photographing and clipping pictures in Android calling system

In Android, when the system camera is photographed, the returned image data will be received. But these pictures are not full-size images, but the thumbnails of the system. When the pictures are cut, the blurred pictures will be obtained. Here are some solutions to this problem.

First, we know that the cutting of the calling system is through intent = new intent ("com. Android. Camera. Action. Crop");

But what data can intent carry and what does it mean? We can see the following:

It contains all optional operations, including some very important parameters.

Intent. Putextra ("return data", true): indicates that the data returned after clipping is a bitmap, which is a thumbnail in memory and has a fuzzy effect. In the onactivityresult method of activity, the method of obtaining is:

In order to get the original picture cut, we choose to save the picture cut locally, then call the local picture and do not go back to Bitmap. directly.

The following code takes photos / cuts and displays them

The above is the whole content of this article. I hope it will be helpful to your study, and I hope you can support programming tips.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>