On Mar 20, 2006, at 3:17 PM, Scott Thompson wrote:
Core Graphics doesn't support RGB Bitmap contexts (i.e. ones with
no storage for alpha channel). Set your components to 4 and use
kCGImageAlphaNoneSkipFirst or kCGImageAlphaNoneSkipLast. (depending
on your desires).
P.S. Core Graphics can handle some pixel formats in images that it
doesn't support for CGBitmapContexts. For example, you can create a
CGImage which from RGB (with no alpha) data and make use of it even
though you can't create a CGBitmapContext with that pixel format.
Scott
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden