Path: utzoo!attcan!uunet!aplcen!samsung!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!nuug!ulrik!ulrik!robertb From: robertb@ulrik.uio.no (Robert Broughton) Newsgroups: comp.sys.amiga.tech Subject: Blitting Message-ID: Date: 7 Jun 90 15:15:14 GMT Sender: robertb@ulrik.uio.no (Robert Broughton) Organization: University of Oslo, Norway Lines: 22 Is there an easy way to copy a particular plane (the first one, for example) of one bit map to a different plane (the second one, for example) of another bit map? Why do I want to do this? My application uses a screen with four bit planes. I am using another RastPort, set up using InitBitMap() and InitRastPort(), to format text. When the text has been formatted, ClipBlit() is used to move it into a window. This works. The only problem is that my "workarea" RastPort also consists of four bit planes, and as a result, uses an outrageous amount of chip memory. Now, one should not really need four bit planes for formatting text; One should be sufficient. I could use ClipBlit() to move a single bit plane to the first bit plane of the "window" RastPort, if I set the RastPort's Mask to 0x01 (disable all bit planes except the first one). Unfortunately, I'm using color 1 for background, and color 15 for text. If I had chosen, a year ago, to use color 14 for background, things would work great; Moving in ClipBlit()'ing in the first bit plane would toggle the colors. It's also occurred to me that I could use memcpy() to move data from one bit plane to another, if the RastPorts were the same width; Alas, they're not. Robert Broughton - robertb@ulrik.uio.no