title: How to smoothen the edges of a UIImageView in iOs
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1136110/any-quick-and-dirty-anti-aliasing-techniques-for-a-rotated-uiimageview">Any quick and dirty anti-aliasing techniques for a rotated UIImageView?</a>  </p>
  </blockquote>
  
  
  
  <p>I wanted to change the angle of an UIImageView in my iPhone and app i used the following code:</p>
  
  <pre><code>previewImg.transform = CGAffineTransformMakeRotation(atan2(y2-y1,x2-x1));
  </code></pre>
  
  <p>and I got it working and the image is below.</p>
  
  <p><img src="https://i.stack.imgur.com/BEyYj.png" alt="enter image description here"></p>
  
  <p>In the image, the edges of the image is not smooth. Is there any way to smoothen the edges?</p>