Android - Cropped image so much zoomed and looking blurre

﹥>﹥吖頭↗ 提交于 2019-12-11 18:44:24

问题


I am using following code to crop an image taken from the camera:

Intent intent = new Intent("com.android.camera.action.CROP");              
intent .setDataAndType(outputFileUri, "image/*");
intent.putExtra("outputX",600);
intent.putExtra("outputY", 600);
intent.putExtra("aspectX", 1);
intent.putExtra("aspectY", 1);
intent.putExtra("scale", true);
intent.putExtra("return-data", false); 
startActivityForResult(intent, 2);

My problems are:

  1. Image cropping is working good on some devices and on some devices app is crashing.So how to handle this condition?

  2. Another thing is that cropped image too much zoomed and getting blurre.


回答1:


Too large photo causes crash, see this how to crop large photos.



来源:https://stackoverflow.com/questions/13910842/android-cropped-image-so-much-zoomed-and-looking-blurre

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!