Thursday, 15 July 2010

android - Crop a large Image with 2448*3264 Resolution -



android - Crop a large Image with 2448*3264 Resolution -

i tried below code crop big image pixel (2448*3264). but, process not working fine. please right below code or give me solution accomplish images cropping process. advance all.

private void performcrop(){ seek { intent cropintent = new intent("com.android.camera.action.crop"); cropintent.setdataandtype(urlgambar, "image/*"); cropintent.putextra("crop", "true"); cropintent.putextra("aspectx", 2); cropintent.putextra("aspecty", 3); //cropintent.putextra("outputx", 256); //cropintent.putextra("outputy", 256); cropintent.putextra("return-data", true); startactivityforresult(cropintent, pic_crop); } catch(activitynotfoundexception anfe){ string errormessage = "whoops - device doesn't back upwards crop action!"; toast toast = toast.maketext(this, errormessage, toast.length_short); toast.show(); } } }

intent com.android.camera.action.crop not standard android intent , there many devices donot back upwards intent. please refer answer in post. using library github cropping.

android image-processing android-imageview android-image

No comments:

Post a Comment