2013-01-21 58 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