Re: Trying to get a TIFF from a CGImageRef isn't working
Re: Trying to get a TIFF from a CGImageRef isn't working
- Subject: Re: Trying to get a TIFF from a CGImageRef isn't working
- From: Steve Mills <email@hidden>
- Date: Wed, 15 Jan 2014 18:48:08 -0600
On Jan 15, 2014, at 16:56:03, Kyle Sluder <email@hidden> 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 (email@hidden)
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:
This email sent to email@hidden