title: How to DrawImage on OSX with CGContext
body: <p>I have a CGContext and I tried to draw an image on it.
  I have a NSImage * load that i used on other method .</p>
  
  <pre><code>NSImage *check = [[NSImage alloc] initWithContentsOfFile:@"check.icns"];
  CGContextDrawImage(arg2, CGRectMake(0, 0, 145, 15), check);
  </code></pre>
  
  <p>But CGContext want a CGImage * how can I used my NSImage * ?</p>
  
  <p>Thanks</p>