我需要执行 UIImageJPEGRepresentation 方法,然后将其保存到文件中,我需要将其保存到 UIImage。请帮忙..
问问题
12203 次
3 回答
8
你可以使用这个:
NSData *imageData = UIImageJPEGRepresentation(uiimageObject,1.0);
UIImage *imageObj = [UIImage imageWithData:imageData];
于 2012-11-30T18:49:48.637 回答
7
我不知道您为什么要从 UIImage 转到 jpeg 数据,然后又回到 UIImage,但[UIImage imageWithData:jpegdata]
应该这样做。
于 2011-07-21T12:48:13.210 回答
0
诶?UIImageJPEGRepresentation
将图像转换为 JPEG 数据...
于 2011-07-21T12:47:08.547 回答