home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / windows / x / 21528 < prev    next >
Encoding:
Text File  |  1993-01-25  |  1.1 KB  |  28 lines

  1. Newsgroups: comp.windows.x
  2. Path: sparky!uunet!pipex!warwick!nott-cs!trellis!nlc
  3. From: nlc@trellis.cs.nott.ac.uk (Neil L Cook)
  4. Subject: 24 bit Colour in X.
  5. Message-ID: <1993Jan25.092842.16287@cs.nott.ac.uk>
  6. Sender: news@cs.nott.ac.uk
  7. Organization: Communications Research Group
  8. Date: Mon, 25 Jan 93 09:28:42 GMT
  9. Lines: 17
  10.  
  11. I am looking for advice and or examples of code in how to program
  12. 24-bit colour in Xlib. I have a GS card for the SPARC10 which is
  13. capable of theoretically displaying all 16.7 million at once. I have
  14. read the O'Reilly Xlib Programmers guide, but it is extremely sketchy
  15. about using all the colours at once, going on about using a colourmap
  16. for each primary. The Xlib manual talks about plane masks which u
  17. apply to the index into the colourmap.
  18.  
  19. Specifically, I am looking for the arguments to XAllocColourPlanes,
  20. which seems to die if I give it 256 colours and 8 bit rgb planes.
  21. (Only accepts 1 colour and 8 bit rgb).
  22.  
  23. Also, once I have got XAllocColourPlanes to work, what do I do with
  24. these plane masks I get back? An example using e.g XPutPixel would be
  25. nice.
  26.  
  27. Neil.
  28.