0

我有这行代码

UIImageJPEGRepresentation(profileImage, 0.8)

我想知道它是通过降低质量来调整图像的高度和宽度还是仅仅调整大小?

4

1 回答 1

2

它只会降低质量。

func UIImageJPEGRepresentation(_ image: UIImage!,
                         _ compressionQuality: CGFloat) -> NSData!

来源: UIImageJPEGRepresentation

于 2015-02-01T10:27:28.440 回答