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

Can I get the cropped offsets? #88

Closed sujan219 closed 2 years ago

sujan219 commented 6 years ago

Hi, is there any way I could get the cropped offset (left and top)?

spadafiva commented 5 years ago

@sujan219 I'm looking to do this too. Did you end up finding a way to do so?

sujan219 commented 5 years ago

Hi @spadafiva, I ended up using cropView.getTransformation().getCrop() method.

spadafiva commented 5 years ago

Thanks @sujan219, I'll take a look at that

spadafiva commented 5 years ago

@sujan219 I've been working on and off for this and it looks like I can use (kotlin) cropImageView.transformMatrix, but I can't find the transformation.crop that you're talking about.

How would I go about converting a matrix to get the offset?

mikecutalo commented 2 years ago

Thank you for you contribution to this repository.

Closing this Issue as this repository is being archived.