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

保存图片的时候尺寸变小了 #71

Open
NightExp opened this issue Oct 26, 2022 · 0 comments
Open

保存图片的时候尺寸变小了 #71

NightExp opened this issue Oct 26, 2022 · 0 comments

Comments

@NightExp
Copy link

保存的图片尺寸变小了。因为绘图的时候进行了压缩。
Bitmap bitmap = ImageUtils.createBitmapFromPath(mImagePath, this);

直接Bitmap bitmap = BitmapFactory.decodeFile(mImagePath);可以恢复原来的尺寸,但是大图又OOM。

有没有办法绘制的时候压缩来避免OOM,保存的时候恢复到原图的尺寸呢。

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

1 participant