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

  1. Newsgroups: comp.windows.x
  2. Path: sparky!uunet!usc!zaphod.mps.ohio-state.edu!swrinde!gatech!hubcap!ncrcae!ncr-sd!crash!photon.photon.com!paula
  3. From: paula@photon.com (Paula Solima)
  4. Subject: XImage and pixel values
  5. Message-ID: <1992Nov18.013524.4791@photon.com>
  6. Sender: usenet@photon.com (Usenet dummy users)
  7. Organization: Photon Research Associates, Inc.
  8. X-Newsreader: TIN [version 1.1 PL6]
  9. Date: Wed, 18 Nov 1992 01:35:24 GMT
  10. Lines: 18
  11.  
  12. I have an array of pixel values ranging from 0 to 255.  Is there
  13. a way to keep the full range of pixel values and use XCreateImage,
  14. without having my entire screen turn black?  I see that I may
  15. limit the number of pixel values and place these values into the
  16. upper part of my colormap, but I would like be able to display all
  17. 256 values.
  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.  
  24. Thanks in advance!
  25.  
  26.  
  27. ===================
  28. paula@photon.com     
  29. ===================
  30.