很遗憾,我在NSImage和NSImageRep中找不到任何关于格式的信息,
NSImage 不会保留这些信息,因为它没有进一步的用途。你得去看看 CGImageSource
NSImage
CGImageSource