Yalantis / uCrop

Image Cropping Library for Android
https://yalantis.com/blog/introducing-ucrop-our-own-image-cropping-library-for-android/
11.89k stars 2.16k forks source link

current image matrix is not updated #139

Closed lalavany closed 7 years ago

lalavany commented 8 years ago

Hi,

When I execute mGestureCropImageView.setImageMatrix(matrix), the mCurrentImageMatrix is not updated in TransformImageView class.

shliama commented 8 years ago

Hello,

that's because mGestureCropImageView.setImageMatrix(matrix) is not uCrop api, it is a method of the ImageView class. mCurrentImageMatrix is updated via other methods (e.g. postScale, postTranslate, postRotate). Maybe it's not obvious, and I should refactor api a bit.

shliama commented 8 years ago

Please check the latest uCrop version :octocat: Now you can choose between:

Lightweight general solution
compile 'com.yalantis:ucrop:2.2.0' 
Get power of the native code to preserve image quality (+ about 1.5 MB to an apk size)
compile 'com.yalantis:ucrop:2.2.0-native'