When wanting to take a photo, crop and save the image in an Android application, I use the following intent in my Java...
Intent camera=new Intent();
camera.setAction(MediaStore.ACTION_IMAGE_CAPTURE);
camera.putExtra("crop", "true");
camera.putExtra("outputX",600);
camera.putExtra("outputY", 600);
camera.putExtra("aspectX", 1);
camera.putExtra("aspectY", 1);
camera.putExtra("scale", true);
camera.putExtra("return-data", false);
The above intent works great, however my Y and X are always equal. I am looking to break down the code to find out what specifies this so that I can make customisable - and most importantly independent - X and Y values for the image which I have taken and wish to crop...
NOTE : THE USE OF
camera.putExtra("crop", "true");
IS NOT ADVISED... See Comments above for details... The aspect parts did however fix my issues !so by setting the aspects to 0 instead of 1,
They become independent of each other...
Problem solved !
FINAL CODE