How to make smoothing in a rotated form?

Possible duplicate:
Any quick and dirty smoothing methods for rotated UIImageView?

when the UIView is rotated, the borders become incredibly ugly. There is no smoothing at all. Also, if it is a UIImageView, there is no smoothing when the transformation matrix is ​​rotated. Is there a way to achieve smooth edges and smooth rotation of images?

+3
source share
1 answer

For UIImageView, add a transparent border around the single-pixel image. This will cause the edges of your image to be inside the β€œinside,” and since the internal pixels will be interpolated during rotation, the borders will be magically smoothed. It also works for rotating UIButtons that have a custom image.

+18
source

All Articles