-
Notifications
You must be signed in to change notification settings - Fork 251
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
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
保存的图片尺寸变小了。因为绘图的时候进行了压缩。
Bitmap bitmap = ImageUtils.createBitmapFromPath(mImagePath, this);
直接Bitmap bitmap = BitmapFactory.decodeFile(mImagePath);可以恢复原来的尺寸,但是大图又OOM。
有没有办法绘制的时候压缩来避免OOM,保存的时候恢复到原图的尺寸呢。
The text was updated successfully, but these errors were encountered: