how to revert to 8-bit color? [message #8353] |
Mon, 03 March 1997 00:00  |
Mark Fardal
Messages: 51 Registered: October 1995
|
Member |
|
|
Hi,
I tried using IDL on the spiffy new Sun Ultra-1 here. All is fine,
except IDL insists on using 24-bit color for the plotting window,
and since I depend on a particular color table this is quite annoying.
I stuck
idl.gr_visual: PseudoColor
in my .Xdefaults, and also issued the command
device,pseudo_color = 8
before creating a window. Neverthelsess, help,/device shows
Display Depth, Size: 24 bits, (1280,1024)
Visual Class: DirectColor (5)
Bits Per RGB: 8
Physical Color Map Entries (Used / Total): 256 / 256
Colormap: Private, 16777216 colors. Translation table: Bypassed
plus other stuff. And yes, 8-bit color is supported on this display
according to xdpyinfo.
What am I doing wrong?
Thanks,
Mark Fardal
University of Colorado
|
|
|
Re: how to revert to 8-bit color? [message #8436 is a reply to message #8353] |
Tue, 04 March 1997 00:00  |
Robert Moss
Messages: 74 Registered: February 1996
|
Member |
|
|
Mark Fardal wrote:
>
> Hi,
>
> I tried using IDL on the spiffy new Sun Ultra-1 here. All is fine,
> except IDL insists on using 24-bit color for the plotting window,
> and since I depend on a particular color table this is quite annoying.
> I stuck
> idl.gr_visual: PseudoColor
> in my .Xdefaults, and also issued the command
> device,pseudo_color = 8
> before creating a window. Neverthelsess, help,/device shows
> Display Depth, Size: 24 bits, (1280,1024)
> Visual Class: DirectColor (5)
> Bits Per RGB: 8
> Physical Color Map Entries (Used / Total): 256 / 256
> Colormap: Private, 16777216 colors. Translation table: Bypassed
> plus other stuff. And yes, 8-bit color is supported on this display
> according to xdpyinfo.
>
> What am I doing wrong?
>
> Thanks,
> Mark Fardal
> University of Colorado
You probably need to tell IDL the depth you want as well as the class.
Make sure you have both of these in your .Xdefatls:
idl.gr_visual: PseudoColor #type of visual
idl.gr_depth: 8 #depth of visual
You shouldn't need the device call if you do this.
--
Robert M. Moss, Ph.D. - mossrm@texaco.com - FAX (713)954-6911
------------------------------------------------------------ -----
This does not necessarily reflect the opinions of Texaco Inc.
|
|
|
Re: how to revert to 8-bit color? [message #8447 is a reply to message #8353] |
Tue, 04 March 1997 00:00  |
Phil Williams
Messages: 78 Registered: April 1996
|
Member |
|
|
Mark Fardal wrote:
>
> Hi,
>
> I tried using IDL on the spiffy new Sun Ultra-1 here. All is fine,
> except IDL insists on using 24-bit color for the plotting window,
> and since I depend on a particular color table this is quite annoying.
> I stuck
> idl.gr_visual: PseudoColor
> in my .Xdefaults, and also issued the command
> device,pseudo_color = 8
> before creating a window. Neverthelsess, help,/device shows
> Display Depth, Size: 24 bits, (1280,1024)
> Visual Class: DirectColor (5)
> Bits Per RGB: 8
> Physical Color Map Entries (Used / Total): 256 / 256
> Colormap: Private, 16777216 colors. Translation table: Bypassed
> plus other stuff. And yes, 8-bit color is supported on this display
> according to xdpyinfo.
>
> What am I doing wrong?
>
Are your .Xdefaults getting loaded?
At the UNIX prompt try
unix% xrdb -query
to see if they made it into the db. If not then merge them into the db
by
unix% xrdb -merge ~/.Xdefaults
Good luck,
Phil
--
/*********************************************************** ********/
Phil Williams, Ph.D.
Research Instructor
Children's Hospital Medical Center "One man gathers what
Imaging Research Center another man spills..."
3333 Burnet Ave. -The Grateful Dead
Cincinnati, OH 45229
email: williams@irc.chmcc.org
URL: http://scuttle.chmcc.org/~williams/
/*********************************************************** ********/
|
|
|