Re: Cross-SDK CGImageCreate
Re: Cross-SDK CGImageCreate
- Subject: Re: Cross-SDK CGImageCreate
- From: Jerry <email@hidden>
- Date: Fri, 29 Sep 2006 09:01:11 +0100
On Oct 8, 2005, at 3:02 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.
I can't answer the CodeWarrior issues, but I can point out another
problem: You can't pass kCGBitmapByteOrder32Host in at all on Panther
because it'll cause CGBitmapContextCreate et al to return NULL. My
solution is to define my own constant equal to zero if compiling with
__ppc__ and to kCGBitmapByteOrder32Host if __i386__. This will fail
if Panther ever runs on Intel or Apple switches to yet another
processor, but I feel fairly safe for the moment.
Jerry
_______________________________________________
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