Created
September 10, 2011 23:55
-
-
Save od0x0/1208965 to your computer and use it in GitHub Desktop.
This file contains 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
NSBitmapImageRep* bitmapImageRep = [[NSBitmapImageRep alloc] | |
initWithBitmapDataPlanes: NULL | |
pixelsWide: targetImage.width | |
pixelsHigh: targetImage.height | |
bitsPerSample: 8 | |
samplesPerPixel: 4 | |
hasAlpha: YES | |
isPlanar: NO | |
colorSpaceName: NSDeviceRGBColorSpace | |
bytesPerRow: 0 | |
bitsPerPixel: 0]; | |
//Gives "Inconsistent set of values to create NSBitmapImageRep", width and height are NOT 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment