sample code:111_NSImage_save_File

    NSBitmapImageRep *imgRep = [[self.m_imageview.image representations] objectAtIndex: 0];
    NSData *data = [imgRep representationUsingType: NSPNGFileType properties: nil];
    [data writeToFile: @"/Users/powenko/Desktop/file.png" atomically: NO];

By admin-powenko

Dr. Powen Ko is a teacher and CEO on LoopTek LLC, and like to teaching. if you need to class, please let PowenKo know, he will love to service and sharing. LoopTek web site is

Leave a Reply