ios - 使用 UIImageJPEGRepresentation 时,多少数字可以保留完整分辨率?

标签 ios uiimage nsimage uiimagejpegrepresentation

有人可以为我解释一下比例(0 到 1)吗?哪个质量最好/最差,这对文件大小有何影响?

最佳答案

关于规模

The quality of the resulting JPEG image, expressed as a value from 0.0 to 1.0. The value 0.0 represents the maximum compression (or lowest quality) while the value 1.0 represents the least compression (or best quality).

关于ios - 使用 UIImageJPEGRepresentation 时,多少数字可以保留完整分辨率?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31040085/

相关文章:

objective-c - NSMutableURLRequest setHTTPBody 方法导致应用程序崩溃并出现 SIGABRT 警告

ios - 来回更改 UIImages

ios - UIimage 未加载到 tableview 上

ios - UIScrollView背景图案图片

objective-c - 是否可以检查存储在 NSimage 对象中的图像是否为灰度图像?

ios - 动画图像,如从 iPad/iPhone 删除应用程序

android - React Native 中的可访问性标识符问题

iphone - 无法调用 UIKeyboard 通知

cocoa - NSImage readFromData问题

swift - NSImage 不适用于所有图像