home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.graphics
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ironwood.cis.ohio-state.edu!juncewic
- From: juncewic@ironwood.cis.ohio-state.edu (thomas michael juncewicz)
- Subject: BitPlane Swapping
- Message-ID: <1992Nov13.152500.13572@cis.ohio-state.edu>
- Sender: news@cis.ohio-state.edu (NETnews )
- Organization: The Ohio State University Dept. of Computer and Info. Science
- Date: Fri, 13 Nov 1992 15:25:00 GMT
- Lines: 25
-
- Is it possible/legal to swap, say, the 0 and 1 bitplanes in a Bitmap? I tried
- something like:
-
- #define rp window->RPort
- .
- .
- .
- PLANEPTR temp;
-
- temp=rp->BitMap->Planes[0]
- rp->BitMap->Planes[0]=rp->BitMap->Planes[1]
- rp->BitMap->Planes[1]=temp
-
-
-
- Now, to me, it looks like this should change the colors of anything drawn using
- planes 0 and 1 (colors 1-3). However, when it runs, nothing happens. I 'drew'
- my stuff my directly writing bytes to the bitplane, and that worked fine. Do I
- need to do something funky like tell the copper to rethink the display? If
- this is the case, then why did my direct writing to the bitplanes work? Please
- excuse my ignorance, but DO NOT hold back the technobabble :) (I learn quick)
- thanx in advance..
-
- Tom
-
-