home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / windows / x / 19312 < prev    next >
Encoding:
Text File  |  1992-11-18  |  1.1 KB  |  31 lines

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