home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / amiga / graphics / 7393 < prev    next >
Encoding:
Text File  |  1992-11-13  |  1.2 KB  |  36 lines

  1. Newsgroups: comp.sys.amiga.graphics
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ironwood.cis.ohio-state.edu!juncewic
  3. From: juncewic@ironwood.cis.ohio-state.edu (thomas michael juncewicz)
  4. Subject: BitPlane Swapping
  5. Message-ID: <1992Nov13.152500.13572@cis.ohio-state.edu>
  6. Sender: news@cis.ohio-state.edu (NETnews        )
  7. Organization: The Ohio State University Dept. of Computer and Info. Science
  8. Date: Fri, 13 Nov 1992 15:25:00 GMT
  9. Lines: 25
  10.  
  11. Is it possible/legal to swap, say, the 0 and 1 bitplanes in a Bitmap?  I tried
  12. something like:
  13.  
  14. #define rp window->RPort
  15. .
  16. .
  17. .
  18. PLANEPTR temp;
  19.  
  20. temp=rp->BitMap->Planes[0]
  21. rp->BitMap->Planes[0]=rp->BitMap->Planes[1]
  22. rp->BitMap->Planes[1]=temp
  23.  
  24.  
  25.  
  26. Now, to me, it looks like this should change the colors of anything drawn using
  27. planes 0 and 1 (colors 1-3).  However, when it runs, nothing happens.  I 'drew'
  28. my stuff my directly writing bytes to the bitplane, and that worked fine.  Do I
  29. need to do something funky like tell the copper to rethink the display?  If
  30. this is the case, then why did my direct writing to the bitplanes work?  Please
  31. excuse my ignorance, but DO NOT hold back the technobabble :) (I learn quick)
  32. thanx in advance..
  33.  
  34. Tom
  35.  
  36.