• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to open CMYK TIF in Cocoa?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: How to open CMYK TIF in Cocoa?
      • From: Todd Freese <email@hidden>
References: 
 >How to open CMYK TIF in Cocoa? (From: Todd Freese <email@hidden>)
 >Re: How to open CMYK TIF in Cocoa? (From: douglas welton <email@hidden>)
 >Re: How to open CMYK TIF in Cocoa? (From: Ken Ferry <email@hidden>)
 >Re: How to open CMYK TIF in Cocoa? (From: Todd Freese <email@hidden>)

  • Prev by Date: Re: Open a new terminal tab or window from a Cocoa app at a certain directory without using NSAppleScript?
  • Next by Date: Re: boundingRectWithSize problem?
  • Previous by thread: Re: How to open CMYK TIF in Cocoa?
  • Next by thread: Re: How to open CMYK TIF in Cocoa?
  • Index(es):
    • Date
    • Thread