简体   繁体   中英

Saving bitmap instance to SD card in .GIF format

I already decode a bitmap from someplace. I want to save it into SD card. But I found that Android just provides this api(bitmap.compress(...)) for saving the bitmap in format jpeg or png.

I just want to save it as gif format.

Maybe the answer of alex for the question in the following thread can help you? saving gif file from drawable into phone sd? and remove it from sd after usage

There is a library called "animatedgifencoded", which you should also use for saving one picture instead of an animated gif.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM