Design Element
Comment on "Convert an NSImage to CIImage"
by Qwerty Denzel — Nov 20
A bit late, but with my version, you can change the first two lines to these for a more efficient solution:

NSBitmapImageRep *bitmapRep = [image bestRepresentationForDevice:nil];
CIImage *ciImage = [[CIImage alloc] initWithBitmapImageRep:bitmapRep];

Of course, with the ciImage needing to be released at some later point.
Back to "Convert an NSImage to CIImage"
Design Element

Copyright © Scott Stevenson 2004-2015