• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: CGBitmapContextCreate hates me
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


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

  • Prev by Date: Installer
  • Next by Date: Re: Installer
  • Previous by thread: Re: CGBitmapContextCreate hates me
  • Next by thread: Re: CGBitmapContextCreate hates me
  • Index(es):
    • Date
    • Thread