home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.x
- Path: sparky!uunet!utcsri!newsflash.concordia.ca!sifon!thunder.mcrcim.mcgill.edu!mouse
- From: mouse@thunder.mcrcim.mcgill.edu (der Mouse)
- Subject: Re: colors & pixels..
- Message-ID: <1992Nov18.235931.7527@thunder.mcrcim.mcgill.edu>
- Organization: McGill Research Centre for Intelligent Machines
- References: <1ebdh6INN66a@uwm.edu>
- Date: Wed, 18 Nov 92 23:59:31 GMT
- Lines: 21
-
- In article <1ebdh6INN66a@uwm.edu>, amit@point.cs.uwm.edu (Amit Srivastava) writes:
-
- > I am using DirectColor setting for colormaps. X has the rgb plane
- > which has 24 bits to store the pixel. However it uses an unsigned
- > long to store the pixel, does X care what u do with the remaining 8
- > bits.
-
- (I assume that's supposed to be a question, in spite of the lack of a
- question mark.)
-
- No. Pixel values are generally simply truncated to the correct number
- of bits, rather than range-checking.
-
- But you can't count on those bits being there; it would be entirely
- possible to have a 32-bit DirectColor visual with, say, 11 bits of red,
- 11 of green, and 10 of blue....
-
- der Mouse
-
- mouse@larry.mcrcim.mcgill.edu
-