简体   繁体   中英

How to save the scaled image in iphone

Thanks in advance. I used CGAffineTransformMakeScale(-1.0, 1.0) tranform on an image 正常影像
And i got the image 比例尺影像 like this.

I am displaying that in an imageview.

Now, if i try to access that image and display in another imageview it is displaying normally like first image.

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.

The following method helps to scale as well as flip the image

UIImage *newImage = [UIImage imageWithCGImage:oldImage.CGImage scale:1.0 orientation: UIImageOrientationUpMirrored];

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM