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

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -