siwangqishiq / ImageEditor-Android

AndroidImageEdit 安卓设备上图形编辑开源控件,支持磨皮美白 自定义贴图 图片滤镜 图片旋转 图片剪裁 文字贴图 撤销 回退 等操作
2.18k stars 567 forks source link

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

Open gjmm123 opened 4 years ago

siwangqishiq commented 4 years ago

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

gjmm123 commented 4 years ago

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

siwangqishiq commented 4 years ago

你的控件 是指什么控件?

gjmm123 commented 4 years ago

就是这个控件ImageViewTouch

gjmm123 commented 4 years ago

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

gjmm123 commented 4 years ago

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

siwangqishiq commented 4 years ago

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

gjmm123 commented 4 years ago

那有办法让它充满整个控件吗

------------------ 原始邮件 ------------------ 发件人: "Geass"<notifications@github.com>; 发送时间: 2020年3月3日(星期二) 上午9:30 收件人: "siwangqishiq/ImageEditor-Android"<ImageEditor-Android@noreply.github.com>; 抄送: "吴忧"<3001098583@qq.com>;"Author"<author@noreply.github.com>; 主题: Re: [siwangqishiq/ImageEditor-Android] 小图片按比例填充图片控件,然后添加贴纸,结果保存下来的最终图片,贴纸的位置和大小都不对了???怎么解决??? (#90)

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

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

siwangqishiq commented 4 years ago

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

gjmm123 commented 4 years ago

好的 ,谢大佬 

------------------ 原始邮件 ------------------ 发件人: "Geass"<notifications@github.com>; 发送时间: 2020年3月3日(星期二) 上午9:35 收件人: "siwangqishiq/ImageEditor-Android"<ImageEditor-Android@noreply.github.com>; 抄送: "吴忧"<3001098583@qq.com>;"Author"<author@noreply.github.com>; 主题: Re: [siwangqishiq/ImageEditor-Android] 小图片按比例填充图片控件,然后添加贴纸,结果保存下来的最终图片,贴纸的位置和大小都不对了???怎么解决??? (#90)

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

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.