UIImageWriteToSavedPhotosAlbum和writeToFile

时间:2015-01-16 03:37:56

标签: ios filesize writetofile

我有一个UIImage。

选项1.我使用UIImageJPEGRepresentation(image,1.f)来获取长度约为1000000(1M)的NSData。我使用writeToFile:atomically:function来保存大小也是1M的图像。

选项2.我使用UIImageWriteToSavedPhotosAlbum来保存大小约为300K的图像。

有很多不同之处。为什么呢?

0 个答案:

没有答案
相关问题