降低UIImage的DPI分辨率
|
我正在使用mfmailcomposeviewcontroller通过电子邮件发送图像:
[mailComposer addAttachmentData:UIImageJPEGRepresentation(self.editedImageView.image, 1.0f)
mimeType:@\"image/jpeg\"
fileName:@\"yourPhotoWithBestGlasses.jpg\"];
我在电子邮件中看到的图片是160 DPI分辨率。
如何在不损失质量的情况下将其减小到72 DPI,以减小kb大小?
没有找到相关结果
已邀请:
2 个回复
净爽
氏脑
然后initwithdata返回。 详细代码