New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
您好,请问下裁剪功能 ,如何能比例限制 #2
Comments
追问,我也是想问这个问题,如何始终保持正方形剪切 |
这个功能和微信一样,没有支持正方形,以及制定比例的裁剪功能 |
我研究了下源码可以这样设置比例,如下还未验证希望高手指导一下是否正确
2.在IMGClipWindow.java的 private void reset(float clipWidth, float clipHeight)方法下添加如下代码(更多比例自行添加)
3.在IMGimage.java的onTouchDown方法中添加如下代码或修改为如下
4.使用裁剪功能前调用IMGConfig设置cropMode即可 5.本人还未验证是否会产生其他BUG 只是提供一下我的思路 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: