且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

将CGImageRef保存到png文件?

更新时间:2022-05-09 21:36:14

创建 CGImageDestination ,传递 kUTTypePNG 作为要创建的文件类型。添加图片,然后完成目的地。

Create a CGImageDestination, passing kUTTypePNG as the type of file to create. Add the image, then finalize the destination.