[英]How to save the scaled image in iphone
Thanks in advance. 提前致谢。 I used CGAffineTransformMakeScale(-1.0, 1.0)
tranform on an image 我在图像上使用了CGAffineTransformMakeScale(-1.0, 1.0)
变换
And i got the image 我得到了图像 like this. 像这样。
I am displaying that in an imageview. 我在imageview中显示它。
Now, if i try to access that image and display in another imageview it is displaying normally like first image. 现在,如果我尝试访问该图像并在另一个imageview中显示,则它通常像第一个图像一样显示。
But i want the scaled image to access. 但是我想要缩放的图像。 Can any one help me how to save and get the scaled image. 谁能帮我如何保存和获取缩放后的图像。 Here this CGAffineTransformMakeScale(-1.0, 1.0)
method will not effect on image. 在这里,此CGAffineTransformMakeScale(-1.0, 1.0)
方法不会对图像产生影响。
The following method helps to scale as well as flip the image 以下方法有助于缩放以及翻转图像
UIImage *newImage = [UIImage imageWithCGImage:oldImage.CGImage scale:1.0 orientation: UIImageOrientationUpMirrored];
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.