如何快速保存图像

时间:2011-05-25 04:03:02

标签: iphone objective-c ipad ipod

我正在使用 ffmpeg 进行视频转换。我正在获得图像序列。现在我正在使用

[UIImagePNGRepresentation(video.currentImage) writeToFile:fileName atomically:YES];

...将文件保存到目录中。但是这需要很多时间来保存。我需要快速保存这张图片。

1 个答案:

答案 0 :(得分:1)

尝试使用UIImageJPEGRepresentation(UIImage * image,CGFloat compressionQuality)