home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / windows / x / 19377 < prev    next >
Encoding:
Internet Message Format  |  1992-11-19  |  1.1 KB

  1. Path: sparky!uunet!olivea!charnel!sifon!thunder.mcrcim.mcgill.edu!mouse
  2. From: mouse@thunder.mcrcim.mcgill.edu (der Mouse)
  3. Newsgroups: comp.windows.x
  4. Subject: Re: XImage and pixel values
  5. Message-ID: <1992Nov20.094724.20322@thunder.mcrcim.mcgill.edu>
  6. Date: 20 Nov 92 09:47:24 GMT
  7. References: <1992Nov18.013524.4791@photon.com>
  8. Organization: McGill Research Centre for Intelligent Machines
  9. Lines: 21
  10.  
  11. In article <1992Nov18.013524.4791@photon.com>, paula@photon.com (Paula Solima) writes:
  12.  
  13. > I have an array of pixel values ranging from 0 to 255.  Is there a
  14. > way to keep the full range of pixel values and use XCreateImage,
  15. > without having my entire screen turn black?
  16.  
  17. Maybe.  Depends on lots of things.
  18.  
  19. > There is a PseudoColor visual with 12 planes (colormap size = 4096)
  20. > available on my Silicon Graphics, however I do see how XCreateImage
  21. > would access colorcells > 255.
  22.  
  23. (Do *not* see how, I assume you mean.)  You would use an XImage of
  24. depth greater than 8, of course.  You would probably use 16 for this;
  25. check out the list of available depths image depths (see
  26. XListPixmapFormats and related functions).
  27.  
  28.                     der Mouse
  29.  
  30.                 mouse@larry.mcrcim.mcgill.edu
  31.