Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有这行代码
UIImageJPEGRepresentation(profileImage, 0.8)
我想知道它是通过降低质量来调整图像的高度和宽度还是仅仅调整大小?
它只会降低质量。
func UIImageJPEGRepresentation(_ image: UIImage!, _ compressionQuality: CGFloat) -> NSData!
来源: UIImageJPEGRepresentation