[comp.sys.mac.programmer] question about CopyBits

jeng@thumper.bellcore.com (Fureching Jeng) (01/18/90)

I use LightSpeed C Version 4.0 to write an application. I tried to use
CopyBits() function and it fails to produce the right color conversion.
The code like this:

	PixMapCon(pixMapHandle aPixMap , pixMapHandle bPixMap)
	{

	   Rect	aRect;

		aRect = (**aPixMap).bounds;

		CopyBits(*aPixMap, *bPixMap, &aRect, &aRect, srcCopy, NULL);
        }

 where aPixMap and bPixMap have different Color Maps.

The above function doesn't do the right color conversion and
the resulting image "bPixMap" has a funny color tone.

Does anyone know what is wrong in the above code?

	Any help will be appreciated.




		Jeng