home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / windows / x / 21571 < prev    next >
Encoding:
Internet Message Format  |  1993-01-26  |  1.5 KB

  1. Path: sparky!uunet!mcsun!fuug!funic!sauna.cs.hut.fi!batman.cs.hut.fi!sti
  2. From: sti@batman.cs.hut.fi (Sami-Jaakko Tikka)
  3. Newsgroups: comp.windows.x
  4. Subject: Why are there pixmap depths that have no corresponding window depths?
  5. Date: 26 Jan 1993 11:17:27 GMT
  6. Organization: Helsinki University of Technology, CS lab
  7. Lines: 24
  8. Distribution: inet
  9. Message-ID: <1k36k7INN563@sauna.cs.hut.fi>
  10. NNTP-Posting-Host: batman.cs.hut.fi
  11.  
  12.  
  13. This might be a bit lowlevel question concerning X protocol:
  14.  
  15. I have wondered why my X server supports pixmap formats that have
  16. depths like 3, 4, 8 but still it only has one Depth (8) which has a
  17. visual type (GrayScale).
  18.  
  19. If my understanding is correct, in my situation I can only create
  20. windows of depth 8.  However I can create pixmaps of depth 3 or 4.
  21. But now I cannot simply copy this pixmap to the window because they
  22. have different depths (so says the X protocol specs).
  23.  
  24. I would first have to change the pixmap to have the same depth as the
  25. window and only after that do the copying.  This seems to be what
  26. XCopyPlane() does, but at least according to the manual it only "uses
  27. a single bit plane of the specified source".
  28.  
  29. So what is the use of having exotic pixmap depths like 3 or 4 which
  30. you cannot use (= copy to a window)?
  31. --
  32.         Sami.Tikka@hut.fi | /G=Sami/S=Tikka/O=hut/ADMD=fumail/C=fi/
  33.                            "Live Long and Prosper!"
  34. ---------------------------------------------------------------------------
  35.          TV-viisautta: "Vaate on puhdas kun siin{ ei ole tahroja."
  36.