• 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: Cross-SDK CGImageCreate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cross-SDK CGImageCreate


  • Subject: Re: Cross-SDK CGImageCreate
  • From: Eric Albert <email@hidden>
  • Date: Fri, 7 Oct 2005 18:20:56 -0400

On Oct 7, 2005, at 5:08 PM, David Dunham wrote:

If I want my code to run on Intel, I need to use kCGBitmapByteOrder32Host. This constant doesn't exist prior to 10.4, and I need to run on 10.2. So my first thought was simply to define it.

But that doesn't work, since the argument of CGImageCreate has changed in 10.4 -- it used to be CGImageAlphaInfo, and is now CGBitmapInfo.

Short of #ifdefing the CGImageCreate all, how can I get my
	| kCGBitmapByteOrder32Host
to work on pre-10.4 SDKs?

Both CGImageAlphaInfo and CGBitmapInfo are 32-bit values (at least as far as the calling convention is concerned), so I'm a bit confused as to how the change is causing any trouble here. Can you explain that a bit?


-Eric

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Cross-SDK CGImageCreate (From: David Dunham <email@hidden>)

  • Prev by Date: Re: Xcode, Perforce and Project Dependencies
  • Next by Date: C++ in a Cocoa App - How Hard is THAT?
  • Previous by thread: Cross-SDK CGImageCreate
  • Next by thread: Re: Cross-SDK CGImageCreate
  • Index(es):
    • Date
    • Thread