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);
精彩评论