Created
October 6, 2011 18:40
-
-
Save dennda/1268244 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
CFMutableDataRef pngdata = CreatePNGDataFromRGBA64Raster((void*) dest, width, height, width * 4); | |
NSData *data = (__bridge NSData*) pngdata; | |
NSURL *url = [NSURL URLWithString:@"/Users/dennda/Desktop/dicomraster.png"]; | |
[data writeToURL:url atomically:YES]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment