Created
February 14, 2012 12:10
-
-
Save Santarh/1826390 to your computer and use it in GitHub Desktop.
Getting BitmapData from Image on Cocoa
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (CGImageRef) loadImageWithPath:(NSString*)path | |
{ | |
NSImage* image = [NSImage imageNamed:path]; | |
return [image CGImageForProposedRect:nil context:nil hints:nil]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment