Re: Has My Image Been Premultiplied?
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.