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