2nd try ...
---------- Forwarded Message ---------- Subject: Re: Grx Problems with linux-X11 Date: Thu, 30 Dec 1999 22:21:45 +0100 From: Hartmut Schirmer hartmut.schirmer@arcormail.de
On Thu, 30 Dec 1999, DAANEN Vincent wrote:
Hi I'm using grx23 with djgpp and all goes fine but, with linux, I meet a problem The problem is that GrSetColor don't seem to work :
- we define 1024x768x256 mode => pseudo color in 8 bits
- next we set the colors : for (i=0;i<256;i++) GrSetColr(i,i,i,i); :
we should have a gray-level color table from black (i=0) to white (i=255)
but when I display an image of the gray-levels, I obtain colored colors (green red,blue yellow...)
Can someone tell me what to do to obtain my gray-level color table using THIS WAY Thanks
Well, normally GRX wonŽt allocate all available colors under X11.
Using the option ŽprivcmapŽ forces GRX to use a full 256 color map.
You can either set the GRX20DRV environment variable to Žxwin::privcmapŽ or call GrSetDriver( "xwin::privcmap")
Hartmut
On Sat, 1 Jan 1994, Hartmut Schirmer wrote:
Well, normally GRX won�t allocate all available colors under X11.
Using the option �privcmap� forces GRX to use a full 256 color map.
You can either set the GRX20DRV environment variable to �xwin::privcmap� or call GrSetDriver( "xwin::privcmap")
Hi. What if I want to use more than 256 colors? I use a Sun Ultra-10, Solaris 2.6 and I can't use more than 256 colors. Thank you for your time. []'s
Alessandro Moure Laboratory of Computed Tomography - Department of Physics CEFET-PR - Curitiba - Parana - Brazil
On Thu, 6 Jan 2000, Hartmut Schirmer wrote:
Hi. What if I want to use more than 256 colors? I use a Sun Ultra-10, Solaris 2.6 and I can't use more than 256 colors.
You can�t use more colors than yout X server provides, sorry.
But other programs do use more than 256 colors. I can even start a terminal window with 32 bpp. Best wishes,
Alessandro Moure Laboratory of Computed Tomography - Department of Physics CEFET-PR - Curitiba - Parana - Brazil