On Jan 15, 2014, at 16:56:03, Kyle Sluder <k...@ksluder.com> wrote: > What is the data format of the original CGImageRef? ImageIO might not be > able to write it to TIFF. (It might have too many bits per pixel, or the > values might be in the wrong order, etc.)
It should be in the native 3-bit byte order, since it was created just milliseconds earlier by the same app, but I'll check on that to make sure. > I'm surprised this works. As mentioned in the 10.6 AppKit release notes > [1], -[NSImage lockFocus] does not cause +[NSView focusView] to return a > view anymore, so -initWithFocusedViewRect: should be a no-op. > > The release notes discuss how to convert image data of arbitrary formats > into something you can work with. [2] > > --Kyle Sluder > > [1] "NSImage, CGImage, and CoreGraphics impedance matching", > <https://developer.apple.com/library/mac/releasenotes/AppKit/RN-AppKitOlderNotes/> > > [2] "NSBitmapImageRep: CoreGraphics impedance matching and performance > notes", > <https://developer.apple.com/library/mac/releasenotes/AppKit/RN-AppKitOlderNotes/> Thanks for the notes. I'll take a look tomorrow. -- Steve Mills office: 952-818-3871 home: 952-401-6255 _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com