Re: CGBitmapContextCreate hates me
Re: CGBitmapContextCreate hates me
- Subject: Re: CGBitmapContextCreate hates me
- From: Scott Thompson <email@hidden>
- Date: Mon, 20 Mar 2006 15:23:36 -0600
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).
see also:
<http://developer.apple.com/qa/qa2001/qa1037.html>
Scott
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