igreenwood / SimpleCropView

A simple image cropping library for Android.
MIT License
2.48k stars 465 forks source link

Resolve #29, Crop rectangle based on coordinate #160

Open taslimisina opened 3 years ago

taslimisina commented 3 years ago

Hi, for issue #29, I added a function to set the crop rectangle in runtime. By calling setFrameRect function in CropImageView, It will adjust the rectangle on the given RectF, relative to the image frame. Note that calling this function will also set the image mode to FREE as the given rectangle may not be consistent with the old aspect ratio.