• 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
premultiplying alpha
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

premultiplying alpha


  • Subject: premultiplying alpha
  • From: Thomas Davie <email@hidden>
  • Date: Tue, 4 May 2010 16:57:39 +0100

After much searching about, I discovered (contrary to what the docs say), that NSBitmapImageReps do not always premultiply their r/g/b by their alpha.  Because of this, I've dived in, and attempted to write my own premultiplication, but something is going very wrong.  Some images are coming out a quarter of the width they went in, others coming out completely empty...

I'd really appreciate someone more familiar with the image APIs taking a stare at my code:
http://pastebin.org/201313

Thanks a lot

Tom Davie_______________________________________________

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: premultiplying alpha
      • From: David Duncan <email@hidden>
  • Prev by Date: Re: "theme" sets with NSUserDefaults
  • Next by Date: Re: premultiplying alpha
  • Previous by thread: Re: NSTableView Loading Question
  • Next by thread: Re: premultiplying alpha
  • Index(es):
    • Date
    • Thread