Possible Duplicate:
How to do antialiasing on a rotated view?
I'm trying to rotate some UIImageViews using this technique:
imageView.transform = CGAffineTransformMakeRotation(r);
where r is a float usually between -0.3 and 0.3.
The problem is that the images (which are derived from square jpegs) that are rotated have jagged edges (pixellation), because they are at an angle after the transform. Is there a way to fix this so the edges are smooth (i.e. antialiased)?
There is a key that you can set in Info.plist that enables antialiasing of the edges: UIViewEdgeAntialiasing.
http://developer.apple.com/library/ios/#documentation/general/Reference/InfoPlistKeyReference/Articles/iPhoneOSKeys.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With