title: How to use UIGraphicsBeginImageContextWithOptions?
body: <p>I'm trying to adapt <a href="https://stackoverflow.com/questions/4493837/how-to-make-something-like-iphone-folders/4493958#4493958">THIS</a> question to work with a retina display.  Here's how I figured out how to work with retina graphics for <code>UIGraphicsBeginImageContext</code>.  </p>
  
  <pre><code>if (UIGraphicsBeginImageContextWithOptions != NULL)
  {
      UIGraphicsBeginImageContextWithOptions(self.view.bounds.size, NO, 0.0f);
  }
  else
  {
      UIGraphicsBeginImageContext(self.view.bounds.size);
  }
  </code></pre>
  
  <p>However, when I use it the image looks really huge and doesn't scale down to fit the display.  Any ideas how I can tell it to resize the captured image to fit the boxes? (Please refer to the other question to understand what I mean).</p>