Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!dimacs.rutgers.edu!aramis.rutgers.edu!paul.rutgers.edu!yoko.rutgers.edu!majidi From: majidi@yoko.rutgers.edu (Masoud Majidi) Newsgroups: comp.windows.x Subject: Help wanted(gray scale images) Message-ID: Date: 11 Jun 91 16:03:16 GMT Organization: Rutgers Univ., New Brunswick, N.J. Lines: 21 Hi, I have a simple problem that has been bugging me for a week and I appreciate it if anyone out there could help me. (From my question it should be obvious that I am not an experienced X programmer!) I have a gray scale image (256 level) and all I want to do is to open a window on my color display workstation (it has 8 color planes) with that image. I don't know whether I need to define a new colormap or just changing the visual will do the job. I wrote a program that will open a window with a bitmap image so my problem is to go from 2 levels to 256 levels) I appreciate it if you let me know how I can do this or even better send me sample code (if you already have one) for bringing up a gray-scale image on a color display. Thanks again, Masoud Majidi(majidi@yoko.rutgers.edu)