Skip to content

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

Description

@NightExp

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

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions