home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / windows / x / 18864 < prev    next >
Encoding:
Internet Message Format  |  1992-11-08  |  1.7 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!ogicse!psgrain!charnel!sifon!thunder.mcrcim.mcgill.edu!mouse
  2. From: mouse@thunder.mcrcim.mcgill.edu (der Mouse)
  3. Newsgroups: comp.windows.x
  4. Subject: Re: Want to overlay bitmap onto a pixmap
  5. Message-ID: <1992Nov7.113623.21363@thunder.mcrcim.mcgill.edu>
  6. Date: 7 Nov 92 11:36:23 GMT
  7. Article-I.D.: thunder.1992Nov7.113623.21363
  8. References: <RPB.92Nov3144841@brain.psy.ox.ac.uk> <1992Nov5.155947.2619@lsl.co.uk>
  9. Organization: McGill Research Centre for Intelligent Machines
  10. Lines: 31
  11.  
  12. In article <1992Nov5.155947.2619@lsl.co.uk>, snail@lsl.co.uk writes:
  13. > In article <RPB.92Nov3144841@brain.psy.ox.ac.uk>, rpb@psy.ox.ac.uk (Ray Bellis) writes:
  14.  
  15. >> [wants to overlay a 1-bit bitmap onto an 8-bit pixmap]
  16.  
  17. > OK, [...rough outline, mentioning XCopyArea...]
  18.  
  19. > Note that I haven't address the fact that you're dealing with 8 bit
  20. > and 1 bit pixmaps.  All I'm doing is addressing the fact you must
  21. > remove data before you plot data.
  22.  
  23. > Note, that you could also use XCopyPlane for each of teh 8 planes.
  24. > This is probably not what yu want and will be slower than 1
  25. > XCopyArea.
  26.  
  27. You seem to be a bit confused about XCopyPlane and XCopyArea.
  28.  
  29. XCopyArea requires that the source and target be the same depth, so it
  30. is not usable here.
  31.  
  32. XCopyPlane extracts just one bitplane of its source, deepens it to the
  33. depth of the destination by using the foreground and background colors
  34. of the GC, and effectively does a CopyArea with the result as the
  35. source (though of course it's normally not actually implemented this
  36. way, this is a not-incorrect way to think of it, and makes it
  37. relatively easy to understand).
  38.  
  39.                     der Mouse
  40.  
  41.                 mouse@larry.mcrcim.mcgill.edu
  42.