biokys / cropimage

Replacement for deprecated official Android crop image function
555 stars 292 forks source link

How to crop image without aspect ratio? #25

Open robinprashanth opened 11 years ago

robinprashanth commented 11 years ago

Hi, I am using biokys lib to crop image,can someone help me how to crop image without any aspect ratio ? when i set the aspect ratio to 0 in intent.putExtra(CropImage.ASPECT_X, 0); intent.putExtra(CropImage.ASPECT_Y, 0); ans start the crop activity,in the crop screen when i change the rectangle line to new place the opposite side line is increasing proportionally.I dont want this effect.

dredfox commented 11 years ago

use intent.putExtra(CropImage.ASPECT_X, 1); intent.putExtra(CropImage.ASPECT_Y, 1);

robinprashanth commented 11 years ago

Hi, Thanks for the reply,but when you set the aspect ratios to 1,if i drag the 1 rectangle line or the overlay the opposite side line also increases equally.I dont need this effect.Let me know if you have any solution?