开发者

Convert bitmap to PNG or JPG using Objective C

开发者 https://www.devze.com 2022-12-11 18:32 出处:网络
Anyone 开发者_开发问答knows how to convert a bitmap to PNG or JPG using Objective C assuming I have

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

精彩评论

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

关注公众号