• 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: Has My Image Been Premultiplied?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Has My Image Been Premultiplied?


  • Subject: Re: Has My Image Been Premultiplied?
  • From: Scott Anguish <email@hidden>
  • Date: Thu, 20 Feb 2003 17:43:07 -0500

Here's the problem: sometimes it doesn't. I tested this with about 50
different images and found that about 90% of the time, the final image was
premultiplied, but that 10% that isn't is the kicker.

No, NSBitmapImageRep always premultiplies. If you need to work with unpremultiplied data, you have to use Quartz, specifically CGImageCreate with kCGImageAlphaLast.

If you're seeing something other than that behavior, please send me some example code.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
  • Follow-Ups:
    • Re: Has My Image Been Premultiplied?
      • From: Jason Harris <email@hidden>
References: 
 >Has My Image Been Premultiplied? (From: Jason Harris <email@hidden>)

  • Prev by Date: Re: Possible to use Cocoa views in a Carbon window?
  • Next by Date: Programmatically collapsing split view
  • Previous by thread: Has My Image Been Premultiplied?
  • Next by thread: Re: Has My Image Been Premultiplied?
  • Index(es):
    • Date
    • Thread