2013-01-21 57 views
1

我想修复图像裁剪的缩放大小。如何做到这一点?我发现了很多,并尝试了很多,但仍然无法获得正确的解决方案尚未.cropped图像太多缩放和blurre.Please有人帮助我的这个问题。我的代码是。如何修复图像裁剪的缩放大小?

intent.putExtra("crop", "true"); 
     intent.putExtra("outputX", 300); 
     intent.putExtra("outputY", 300); 
     intent.putExtra("aspectX", 1); 
     intent.putExtra("aspectY", 1); 
     intent.putExtra("scale", false); 
     intent.putExtra("return-data", true); 

回答

0

尝试这样

intent.putExtra("outputX", 200); //Set this to define the max size of the output bitmap 
intent.putExtra("outputY", 200); //Set this to define the max size of the output bitmap 
intent.putExtra("aspectX", 1); //Set this to define the X aspect ratio of the shape 
intent.putExtra("aspectY", 1); //Set this to define the Y aspect ratio of the shape 

检查这个link

+2

我尝试过,但仍然没能解决的疑难问题。要修复的矩形大小,同时变焦in.How做? – Biginner

+0

@Romil试试这个 – Janmejoy

+2

是我也试过但没有解决它 – Biginner