title: Rotate image in Quartz? Image is upside down! (iPhone)
body: <ul>
  <li>I don't want to transform the ENTIRE context.</li>
  </ul>
  
  <p>I'm making a game with Quartz, and I'm drawing my player with lines, rects and ellipses.</p>
  
  <p>And then I have diamong.png which I rendered at 0,0 in the top left of the screen.</p>
  
  <p>Problem is...</p>
  
  <p>It renders upside down!</p>
  
  <p>How would I rotate it 180 degrees?</p>
  
  <p>Here's some of my code:</p>
  
  <pre><code>CGImageRef diamondImage = CGImageRetain([UIImage imageWithContentsOfFile: [[NSBundle mainBundle] pathForResource:@"Diamond.png" ofType:nil]].CGImage);
  CGContextDrawImage(context, CGRectMake(0, 0, 32, 24), diamondImage);
  </code></pre>
  
  <p>If it's of any help, I'm using Landscape mode, with home button to the right. It's defined both in my .plist, and in my ViewController's</p>
  
  <blockquote>
    <p>-shouldAutorotateToInterfaceOrientation:interfaceOrientation:</p>
  </blockquote>
  
  <p>How would I rotate/transform it?</p>