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) I could use other frameworks if necessary, just not UIKit. Would CIImage
work? Or NSBitmapImageRep
?