cocoa - How to save a NSImage as a new file -
How can I save an NSImage in a certain directory as a new directory (png, jpg, ...) Can i
Do something like this:
NSBitmapImageRep * imgRep = [[image Representing] ObjectAtIndex: 0]; NSDT * Data = [IMGRAP Presentation User Type: NSPNG FileType Properties: Zero]; [Write data file: @ "/ path / to / file page" atomic: no];
Comments
Post a Comment