Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!wuarchive!udel!rochester!pt.cs.cmu.edu!henry!hairston From: hairston@henry.ece.cmu.edu (David Hairston) Newsgroups: comp.sys.mac.programmer Subject: Re: Saving/Restoring screen using off-screen pixMap Message-ID: Date: 17 Jan 91 02:42:03 GMT References: <11659@ur-cc.UUCP> Distribution: na Organization: Gaia II Lines: 17 In-reply-to: maunsell@cvs.rochester.edu's message of 16 Jan 91 17:29:53 GMT [maunsell@cvs.rochester.edu (John Maunsell) writes:] [] I have several programs that save portions of the screen to an [] off-screen bitMap so that screen contents can be updated quickly [] at a later time. I've had no problems using bitMaps,i but I can't [] get off-screen pixMaps to work properly. The contents (lines, ovals, [] etc) of the restored region are returned intact, but the colors are [] often changed. don't forget to set the high bit of .rowBytes to indicate that this bitmap is being used as a pixmap. i don't recall what TN.120 says but also don't forget to set the foreground color to black and the background color to white for CopyBits on PixMaps. (Ref. IM-V). i'm not sure this is your problem but these two areas are often overlooked. -dave- hairston@henry.ece.cmu.edu