Re: ARG! Direct Color problem IDL 5.5/Linux (decomposed doesn't help) SOLVED [message #29262 is a reply to message #29174] |
Fri, 08 February 2002 02:07   |
R.Bauer
Messages: 1424 Registered: November 1998
|
Senior Member |
|
|
Robert Stockwell wrote:
>
> Nigel Wade wrote:
>
>> Robert Stockwell wrote:
>> Ditto, the same.
>>
>> Don't tell me you never played snap as a kid? Maybe it's called something
>> else over the pond. How does that saying go "two countries separated by a
>> common language"?
>
> heh heh
>
>>
>> That's strange. Do you do a device,decomposed=0 first? I have a feeling
>> that fixes the visual to the default.
>
> AHA! Yes that is it! I had decomposed=0 in there, and it locked IDL into
> Direct Color, and causing device,true=24 commands to be ignored, and
> hence the goofy diret color behaviour.
>
> Now I get normal color. YAY!
> Thanks a lot for help!
>
> Cheers,
> dancing bob
> (sung to the tune of "I am evil homer")
> "I've got pretty colours"
> "I've got pretty colours"
> "I've got pretty colours"
> "I've got pretty colours"
>
> For any who are interested, here is my startup script:
>
> ;startup.pro
> ;calls my startup procedures for idl
>
> ; DISPLAY _________________
>
> ; fix the IDL 5.5/Linux colour problem
> if strlowcase(!version.os) eq 'linux' then device,true=24
> if strlowcase(!version.os) eq 'linux' then window,/pixmap &wdelete ; fix the IDL 5.5/Linux colour problem
> if strlowcase(!version.os) eq 'linux' then device,bypass_translation=0
> if strlowcase(!version.os) eq 'linux' then device,retain = 2
>
> device,decomposed=0
>
> print,'Startup ran'
This is funny I got colors with your script too, but what is the
difference to my
script
if strlowcase(!version.os) eq 'linux' then device,
get_visual_depth=depth
if strlowcase(!version.os) eq 'linux' then device, true_color=depth
if strlowcase(!version.os) eq 'linux' then window, /free, /pixmap
if strlowcase(!version.os) eq 'linux' then wdelete, !d.window
if strlowcase(!version.os) eq 'linux' then device,bypass_translation=0
if strlowcase(!version.os) eq 'linux' then device, retain=2
if strlowcase(!version.os) eq 'linux' then decomposed=0
delvar,depth
I have added the line at the correct place and this didn't work!
My result is that it is forbidden to ask for the visual_depth!!!
If I exclude this line and set myself depth to 24 all is good, but how
will I determine now between 16bit and 24 bit ?
Reimar
--
Reimar Bauer
Institut fuer Stratosphaerische Chemie (ICG-1)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
http://www.fz-juelich.de/icg/icg1/
============================================================ ======
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_lib_intro.h tml
http://www.fz-juelich.de/zb/text/publikation/juel3786.html
============================================================ ======
|
|
|