comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: 16-bit color in IDL/Linux
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: 16-bit color in IDL/Linux [message #9804 is a reply to message #9786] Wed, 20 August 1997 00:00 Go to previous message
tdarnell is currently offline  tdarnell
Messages: 3
Registered: August 1997
Junior Member
In article <33F9CE8B.14@cougar.jpl.nasa.gov>,
Mike Ressler <ressler@cougar.jpl.nasa.gov> writes:

> I'm sure this has been asked before, but I couldn't find anything
> in the FAQ or any of the IDL Web pages I know about. Can IDL be
> made to work with a 16-bit TrueColor visual in the Linux version?

I've only just begun using LINUX on my PC so I am certainly no expert there,
however, perhaps I can offer something useful on the IDL side. As you
probably know, IDL selects the visual class the first time it connects to
the X server. Since you seem pretty sure about the color levels the server
is using, the problem is one of making IDL see it when it first creates a
window. I presume you are using XFree86 along with some window manager, so I
would start by making a startup procedure that IDL executes everytime you
enter it with the following in it:

DEVICE,True_Color=24
;DEVICE,Direct_Color=24
;DEVICE,pseudo_color=8
;WINDOW,XSIZE=512,YSIZE=512,COLORS=256
;WINDOW,XSIZE=512,YSIZE=512,COLORS=2L^24
WINDOW,XSIZE=512,YSIZE=512,COLORS=256
WDELETE

HELP,/DEVICE

You can then uncomment out the lines (this is my start.pro) to experiment
with different visual classes to see if one works. Unfortunately I don't
believe you can say DEVICE,TRUE_COLOR=16, but I could be wrong, I've never
tried it. Try a color level less that 16, say the pseudo_color=8 mode to
make sure there are colors to spare and then go up. The window manager you
are using might even support direct_color.

If none of this worked, I'd be inclined to try another window manager because
there are so many available for LINUX. I'm sure there is a problem with what
IDL expects to get from it and what it is actually getting.

If none of this works, my apologies, I hope you'll post what actually ended
up working, along with your setup (window manager, etc) because I'll be
shifting to LINUX soon. :-)

HTH,

--
Tony Darnell
High Altitude Observatory
(tdarnell@hao.ucar.edu) Boulder, CO
[Message index]
 
Read Message
Read Message
Previous Topic: informazione
Next Topic: polar contour

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Nov 30 15:13:34 PST 2025

Total time taken to generate the page: 0.80662 seconds