开发者

How to save the scaled image in iphone

开发者 https://www.devze.com 2023-03-06 19:06 出处:网络
Thanks in advance. I used CGAffineTransformMakeScale(-1.0, 1.0) tranform on an image And i gotthe imagelike this.

Thanks in advance. I used CGAffineTransformMakeScale(-1.0, 1.0) tranform on an image

How to save the scaled image in iphone

And i got the image

How to save the scaled image in iphone

like this.

I am displaying that in an imageview.

Now, if i try to access that image and display in another ima开发者_如何学编程geview 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];
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号