I am using this code to flip image.
CGAffineTransform trans = CGAffineTransformScale(imageView.transform, -1, 1);
imageView.transform = trans;
Now if i want to save this flipped image what should i do ?
I am using UIImageWriteToSavedPhotosAlbum(imageView.image, nil, nil, nil); to save the image in iphone library but it is saving the original image not the flipped image.
Your suggestions are welcome guys.
Thank you for helping.
As You’re doing you’re flipping
UIImageViewon itsX-AxisnotUIImage. So obviously code would save your original image.Flip your
UIImageinstead ofUIImageViewthen save –Now use your saving method –
EDIT: