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 (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

Reply via email to