Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!cmcl2!rutgers!sri-spam!mordor!lll-tis!ames!sdcsvax!ucbvax!jade!thoth9.berkeley.edu!jmm From: jmm@thoth9.berkeley.edu.BERKELEY.EDU Newsgroups: comp.sys.mac Subject: how to draw on an offscreen bitmap Message-ID: <5330@jade.BERKELEY.EDU> Date: Mon, 5-Oct-87 19:05:28 EDT Article-I.D.: jade.5330 Posted: Mon Oct 5 19:05:28 1987 Date-Received: Thu, 8-Oct-87 06:46:21 EDT Sender: usenet@jade.BERKELEY.EDU Reply-To: jmm@thoth9.berkeley.edu () Organization: University of California, Berkeley Lines: 43 I'm having a problem using an offscreen bitmap. (I'm working in LSP). 1. Set up bitmap record, allocate enough memory for bitmap. 2. Open a new window. 3. Use SetPortBits to set the new window's bitmap to the bitmap I set up in #1. Save the old bitmap. 4. Draw stuff. 5. Reset the window's bitmap to the original. 6. Use CopyBits to transfer the offscreen bitmap to the current window. 7. This gets me zippo. What is staring me in the face? I've read IM's section on Quickdraw about seven hundred times :~) but I can't find anything wrong. I reset the cliprect to the window size every time I change bitmaps, and absolutely nothing comes out of the CopyBits calls. (I know there's a Technote about this - I'm trying to get my hands on it, but I don't have it yet. If someone could send me a plain textfile, with no Mac formatting, I'd much appreciate it. I have no way of getting files from Unix to my mac.) Thanks, James Moore ucbvax!leggatt!jmm