我需要执行UIImageJPEGRepresentation方法,然后不将其保存到文件,我需要将其保存到UIImage。请帮帮忙..
发布于 2011-07-21 20:48:13
我不知道为什么你想要从UIImage转到jpeg数据,然后再回到UIImage,但[UIImage imageWithData:jpegdata]应该做到这一点。
发布于 2012-12-01 02:49:49
您可以使用以下命令:
NSData *imageData = UIImageJPEGRepresentation(uiimageObject,1.0);
UIImage *imageObj = [UIImage imageWithData:imageData];发布于 2011-07-21 20:47:09
嗯?UIImageJPEGRepresentation将图像转换为JPEG数据...
https://stackoverflow.com/questions/6776245
复制相似问题