Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: CGBitmapContextCreate hates me
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CGBitmapContextCreate hates me




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


References: 
 >CGBitmapContextCreate hates me (From: Jim Turner <email@hidden>)
 >Re: CGBitmapContextCreate hates me (From: Scott Thompson <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.