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

Home » Public Forums » archive » Re: ARG! Direct Color problem IDL 5.5/Linux (decomposed doesn't help) SOLVED
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: ARG! Direct Color problem IDL 5.5/Linux (decomposed doesn't help) SOLVED [message #29172] Thu, 07 February 2002 13:57 Go to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Robert Stockwell (rgs1967@hotmail.com) writes:
> 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

Humm. Seems like that's the startup script we have been
recommending for at least a month now. :-)

Cheers,

David

--
David W. Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
Re: ARG! Direct Color problem IDL 5.5/Linux (decomposed doesn't help) SOLVED [message #29174 is a reply to message #29172] Thu, 07 February 2002 13:13 Go to previous messageGo to next message
Robert Stockwell is currently offline  Robert Stockwell
Messages: 74
Registered: October 2001
Member
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'
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 Go to previous message
R.Bauer is currently offline  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
============================================================ ======
Re: ARG! Direct Color problem IDL 5.5/Linux (decomposed doesn't help) SOLVED [message #29267 is a reply to message #29172] Thu, 07 February 2002 16:02 Go to previous message
Robert Stockwell is currently offline  Robert Stockwell
Messages: 74
Registered: October 2001
Member
David Fanning wrote:

> Robert Stockwell (rgs1967@hotmail.com) writes:
>
>> 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
>>
>
> Humm. Seems like that's the startup script we have been
> recommending for at least a month now. :-)
>
> Cheers,
>
> David


Yeah.

In fact I had grabbed a very similar startup script about week
ago, and I think it failed because the order of steps that
I had was wrong (with the decomposed = 0 before true=24 statement,
which seemed to cause the true = 24 statement to be ignored,
(as is described in the IDL help).)

It is nice to finally have come full circle and completed the journey
to whence I started.

Cheers,
bob

PS Let's just say I find it a lot more comfortable in Win2000 (where
I almost know whats going on) than Linux.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: idl5.5 bug (relative path)
Next Topic: Re: ARG! Direct Color problem IDL 5.5/Linux (decomposed doesn't help) SOLVED

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

Current Time: Wed Oct 08 14:55:42 PDT 2025

Total time taken to generate the page: 0.00586 seconds