Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!yale!ox.com!oxtrap!teemc!mibte!gamma!thumper!jeng From: jeng@thumper.bellcore.com (Fureching Jeng) Newsgroups: comp.sys.mac.programmer Subject: question about CopyBits(). Keywords: CopyBits() function. Message-ID: <1796@thumper.bellcore.com> Date: 17 Jan 90 18:57:09 GMT References: <105612@ti-csl.csc.ti.com> Reply-To: jeng@thumper.UUCP (Fureching Jeng) Organization: Bellcore MRE Lines: 28 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