title: How can I get a CGImageRef from a file?
body: <p>So I know you can get a <code>CGImage</code> from a file using UIImage...</p>
  
  <pre><code>UIImage *img = [UIImage imageNamed:@"name.bmp"];
  [img CGImage];
  </code></pre>
  
  <p>But, is there a way to get a <code>CGImageRef</code> without using a <code>UIImage</code>?</p>
  
  <p>(I am trying this in a static library which doesn't have access to UIKit) I could use other frameworks if necessary, just not UIKit. Would <code>CIImage</code> work? Or <code>NSBitmapImageRep</code>?</p>