I see now that Image I/O is enabled by default. On 3 May 2008, at 15:07, YAMAMOTO Mitsuharu wrote: > Sounds like an endian issue if you run it on an Intel machine. > Could you try adding kCGBitmapByteOrder32Host to the last > argument of each CGBitmapContextCreate call? Yes, that works indeed.