Problem with X display [message #6694] |
Fri, 26 July 1996 00:00 |
MICHEL KRUGLANSKI
Messages: 14 Registered: August 1996
|
Junior Member |
|
|
Hi,
I work on a DEC alpha station 600 with a ZLXPE2 24-planes graphic card.
I use either IDL or PV-WAVE.
I have a problem when I try to use 256 colors.
idl (or wave)
> print,!d.n_colors
256
> window,col=256
> print,!d.n_colors
16777216
The variable !d.ncolors provide a wrong information and, therefore,
I can not load correctly a color table.
> loadct,5
% LOADCT: Loading table STD GAMMA-II
> palette
I get colors from black to dark blue, i.e. the begin of the color table.
Does anybody know a solution?
Michel K.
IASB
|
|
|
Re: Problem with X display [message #6695 is a reply to message #6694] |
Fri, 26 July 1996 00:00  |
Liam Gumley
Messages: 473 Registered: November 1994
|
Senior Member |
|
|
MICHEL KRUGLANSKI wrote:
> I work on a DEC alpha station 600 with a ZLXPE2 24-planes graphic card.
> I use either IDL or PV-WAVE.
> I have a problem when I try to use 256 colors.
> idl (or wave)
>> print,!d.n_colors
> 256
>> window,col=256
>> print,!d.n_colors
> 16777216
In IDL, try this immediately after startup:
device,pseudo=8
window,colors=256
print,!d.n_colors
Note that the 'device' command as shown and the 'colors' keyword to 'window'
only have an effect before any windows are opened. Once set, these
options remina set for the rest of the IDL session.
Cheers,
Liam.
|
|
|
Re: Problem with X display [message #6697 is a reply to message #6694] |
Fri, 26 July 1996 00:00  |
David Foster
Messages: 341 Registered: January 1996
|
Senior Member |
|
|
MICHEL KRUGLANSKI <M.Kruglanski@oma.be> wrote:
> I work on a DEC alpha station 600 with a ZLXPE2 24-planes graphic card.
> I use either IDL or PV-WAVE.
>
> I have a problem when I try to use 256 colors.
>
> idl (or wave)
>> print,!d.n_colors
> 256
>> window,col=256
>> print,!d.n_colors
> 16777216
If you have 256 colors available, then the possible color
indices are 0 - 255; you are requesting a color that is
"out of range". It looks like your system is changing the
visual class for you when you request a color that it
cannot provide.
This seems too easy. Please excuse me if I'm having a
"technically challenged" day.
Dave Foster
foster@bial1.ucsd.edu
|
|
|