Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NSError* error;
- NSBitmapImageRep* framerep = [[frame representations] objectAtIndex:0];
- NSData* png_data = [framerep representationUsingType:NSPNGFileType properties:nil];
- NSString* frame_path = @"blah.png"
- [png_data writeToFile:frame_path options:0 error:&error];
Add Comment
Please, Sign In to add comment