Re: How to open CMYK TIF in Cocoa?
Re: How to open CMYK TIF in Cocoa?
- Subject: Re: How to open CMYK TIF in Cocoa?
- From: Jens Alfke <email@hidden>
- Date: Thu, 26 Jan 2012 10:33:22 -0800
On Jan 26, 2012, at 8:25 AM, Todd Freese wrote:
> The problem seems to be with the embedded alpha channel in the TIF. It is always using the alpha when you try to do anything with the file. Is there an easy way to avoid this? In my case, I need the full image without the alpha.
Isn’t it the expected behavior for it to use the alpha channel if there’s one present? That doesn’t sound like a bug to me.
If you want to strip out the alpha channel, you may need to load the image into a pixmap and then manually set the alpha component to 1.0 in all pixels. I’m not sure if there’s a graphics call to do this, or if you need to walk through the pixels in memory and manually OR 0xFF into the alpha component.
—Jens
_______________________________________________
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