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

同样的涂鸦,保存涂鸦图片在不同设备上生成的图片大小差别很大 #25

Closed
xuehuashi opened this issue Jul 24, 2019 · 1 comment

Comments

@xuehuashi
Copy link

红米5plus 生成涂鸦后图片变化很小,只比原图增大几十k, 但是在一加的一款,同样的涂鸦生成图片翻倍了,多次涂鸦出现300k -600k-1.2m-2.4m, 其他测试机单次涂鸦会出现不同大小的增大,多次涂鸦每次增幅基本相同,测试后发现图片放大后生成的图片尺寸和手机屏一致,生成涂鸦后bitmap,和手机屏幕分辨率有关??

@1993hzw
Copy link
Owner

1993hzw commented Jul 24, 2019

ImageUtils.createBitmapFromPath 可以看下bitmap是怎么生成的 里面有取当前设备的大小去缩放图片

@1993hzw 1993hzw closed this as completed Jul 24, 2019
@chgmxx chgmxx mentioned this issue Sep 29, 2021
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