premultiplying alpha
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