How can I get a CGImageRef from a file?

Posted by OTisler on Stack Overflow See other posts from Stack Overflow or by OTisler
Published on 2010-05-07T18:43:25Z Indexed on 2010/05/07 18:48 UTC
Read the original article Hit count: 130

Filed under:
|

So I know you can get a CGImage from a file using UIImage...

UIImage *img = [UIImage imageNamed:@"name.bmp"];
[img CGImage];

But, is there a way to get a CGImageRef without using a UIImage?

(I am trying this in a static library which doesn't have access to UIKit

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c