home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / windows / x / 16038 < prev    next >
Encoding:
Text File  |  1992-09-01  |  1.1 KB  |  37 lines

  1. Newsgroups: comp.windows.x
  2. Path: sparky!uunet!timbuk.cray.com!walter.cray.com!vincent
  3. From: vincent@cadillac.cray.com (Vincent LE BARAZER)
  4. Subject: 256 grayscale levels with standard colormap
  5. Message-ID: <1992Sep2.040959.16164@walter.cray.com>
  6. Originator: vincent@cadillac
  7. Keywords: Colormap Grayscale
  8. Sender: vincent@cadillac (Vincent LE BARAZER)
  9. Organization: Cray Research, Inc.
  10. Date: 2 Sep 92 04:09:58 CDT
  11. Lines: 24
  12.  
  13.  
  14.  Hi everybodyx,
  15.  
  16.  I'd like to create an X application that draw lines of pixels, with
  17. color level from 0 to 255 in a Grayscale visual.
  18.  This application has to work either on 8 planes grayscale servers or
  19. on 24 planes color server.
  20.  
  21.  My first step was to Create a new colormap, allocate 256 levels of gray
  22. pixels ( red = green = blue ), and install this colormap .
  23.  
  24.  ... but other X clients running on the same server do not like this new
  25. colormap !
  26.  
  27.  So , how can I handle 256 gray levels without changing the color map ?
  28. I suppose that the Visual type has something to do with this ??....
  29.  
  30.  Many thanx in advance for your help,
  31.  
  32.  Vincent Le Barazer
  33.  Cray Research France
  34.  Email: vincent@cray.com
  35.  
  36.  
  37.