开发者

Convert bitmap to PNG or JPG using Objective C

Anyone 开发者_开发问答knows how to convert a bitmap to PNG or JPG using Objective C assuming I have

CGImageRef imageRef;


UIImage *myImage = [UIImage imageWithCGImage:imageRef];
NSData *pngData = UIImagePNGRepresentation(myImage);
NSData *jpgData = UIImageJPEGRepresentation(myImage);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜