lyft / scissors

✂ Android image cropping library
https://eng.lyft.com/scissors-an-image-cropping-library-for-android-a56369154a19
Apache License 2.0
1.84k stars 235 forks source link

reset transform #58

Closed jachenry closed 8 years ago

jachenry commented 8 years ago

We have a flow requiring multiple images to be selected and cropped. The issue is the CropView's transform sticks around even after loading a new image. Is there a way to reset the transform applied to the CropView before we load the next image?

eveliotc commented 8 years ago

@jachenry Please considering loading the images at your convenience and then setting it on the view e.g. cropView.setImageBitmap(Bitmap);

jachenry commented 8 years ago

I forked the repo and recreate the touch manager anytime a new bitmap is set. Thank you for creating this project and the response to my question.

https://github.com/jachenry/scissors/commit/3a06dbd87e883f787614ff4d1f6492951f34ce55