Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!oliveb!amdahl!JUTS!duts!rla20 From: rla20@duts.ccc.amdahl.com (Roger Allen) Newsgroups: comp.sys.mac.programmer Subject: Help! offscreen DrawPicture messes colors up. Keywords: PICT QuickDraw Color DrawPicture Message-ID: Date: 6 Mar 91 17:40:18 GMT Sender: netnews@ccc.amdahl.com Reply-To: rla20@DUTS.ccc.amdahl.com (Roger Allen) Distribution: comp Organization: Amdahl Corporation, Sunnyvale CA Lines: 40 This should be an easy one for some net-guru out there... Here is what I am doing: I am displaying a color picture in a window and also keep a copy of the picture in an offscreen PixMap. Everything about this situation seems hunky-dory, updates via copybits works great, scrolling works, etc. I am implementing Copy/Paste and having problems with DrawPicture (I think). If the user selects a rectangle to copy, I do the following: 1. Set the port to the offscreen PixMap. 2. Set the clip rect to the selection rectangle. 3. Open a Picture. 4. CopyBits the selection rect from the PixMap to the PixMap. 5. Close the Picture & put it in the scrap. The above works fine. Please read on. Here is my problem: If I paste the picture to the window (via SetPort & DrawPicture) the colors are good. BUT, if I paste to the offscreen PixMap (via SetPort & DrawPicture), the next update to the window (a CopyBits from PixMap to window) shows that the pasted rects colors are all messed. So, my question is: why would DrawPicture work for the window but not the offscreen PixMap, when the picture was made from the PixMap? Any help at all would be great, please E-mail me and I will summarize the responses. Thanks in advance, Roger -- > Roger Allen | :~) "I always lie" < > Amdahl Computer Development | < > rla20@duts.ccc.amdahl.com | ;~( "I'm lying now" <