Skip to content
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

小图片按比例填充图片控件,然后添加贴纸,结果保存下来的最终图片,贴纸的位置和大小都不对了???怎么解决??? #90

Open
gjmm123 opened this issue Mar 2, 2020 · 10 comments

Comments

@gjmm123
Copy link

gjmm123 commented Mar 2, 2020

No description provided.

@siwangqishiq
Copy link
Owner

小图片是多小 width height 请给出 , 位置不正确也请给出详细数据

@gjmm123
Copy link
Author

gjmm123 commented Mar 2, 2020

图片是700X525的,我的控件是按3:4比例的,控件宽度全屏,图片展示上去被拉伸裁剪了,然后添加贴纸后,最终保存下来的图片贴纸放大了位置也偏上了

@siwangqishiq
Copy link
Owner

你的控件 是指什么控件?

@gjmm123
Copy link
Author

gjmm123 commented Mar 2, 2020

就是这个控件ImageViewTouch

@gjmm123
Copy link
Author

gjmm123 commented Mar 2, 2020

不过我设置的是CENTER_CROP,需求要充满控件,所以会被裁剪,相当于图片放大展示了

@gjmm123
Copy link
Author

gjmm123 commented Mar 2, 2020

大佬,这个ImageViewTouch中的图片太小的话充满不了控件的,充满后添加贴纸就会有我说的那个问题?这个该从那里解决呢??急求解

@siwangqishiq
Copy link
Owner

CENTER_CROP 会影响图片最终合成的变换矩阵 建议不要做这样的修改

@gjmm123
Copy link
Author

gjmm123 commented Mar 3, 2020 via email

@siwangqishiq
Copy link
Owner

这个需要改图片合成的代码了 等我有空了看一下

@gjmm123
Copy link
Author

gjmm123 commented Mar 3, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants