Android: rotate image without loading it to memory

后端 未结 6 1967
梦谈多话
梦谈多话 2020-11-28 08:09

I am wondering is it possible to rotate an image stored on sdcard without loading it\'s to memory.

The reason is why I am looking for that is famous OutOfMemoryError

6条回答
  •  遥遥无期
    2020-11-28 08:45

    I will suggest you to use some 3rd party library that does not store data on process heap while operating on bitmaps. In my case I used ffmpeg that I was already using for other purpose in my project.

提交回复
热议问题