[英]How to save the scaled image in iphone
提前致谢。 我在图像上使用了CGAffineTransformMakeScale(-1.0, 1.0)
变换
我得到了图像 像这样。
我在imageview中显示它。
现在,如果我尝试访问该图像并在另一个imageview中显示,则它通常像第一个图像一样显示。
但是我想要缩放的图像。 谁能帮我如何保存和获取缩放后的图像。 在这里,此CGAffineTransformMakeScale(-1.0, 1.0)
方法不会对图像产生影响。
以下方法有助于缩放以及翻转图像
UIImage *newImage = [UIImage imageWithCGImage:oldImage.CGImage scale:1.0 orientation: UIImageOrientationUpMirrored];
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.