// 1.创建Transform orginalImage的数据类型为CIImage
let scale = imageView.bounds.width / orginalImage.extent.width
let transform = CGAffineTransformMakeScale(scale, scale)
// 2.放大图片
let hdImage = orginalImage.imageByApplyingTransform(transform)
// 1.创建Transform orginalImage的数据类型为CIImage
let scale = imageView.bounds.width / orginalImage.extent.width
let transform = CGAffineTransformMakeScale(scale, scale)
// 2.放大图片
let hdImage = orginalImage.imageByApplyingTransform(transform)
本文标题:iOS中无损放大图片
本文链接:https://www.haomeiwen.com/subject/jqoasttx.html
网友评论