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

Home » Public Forums » archive » Re: Color question (answer is not device,decomposed=0)
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: Color question (answer is not device,decomposed=0) [message #19810 is a reply to message #19808] Sun, 23 April 2000 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Troy Carter (tcarter@princeton.edu) writes:
>
> I am trying to learn to use Object graphics, now that idl 5.3 allows me
> to create vector eps files using object methods. My problem is that
> when I draw to a window, and try to get black on white, I end up with
> black on yellow. White on black works fine, but when I try to set up my
> IDLgrView object with color=[255,255,255], I get yellow instead of
> white. The device procedure applies only to direct graphics, so
> device,decomposed=0 is not the answer (although I tried it anyway :) ).
> I am running idl on a solaris machine, using the 24-bit display of a PC
> running linux. Any clues would be much appreciated. Thanks!

Humm. This notion of running on a Solaris machine with
a Linux display concerns me a bit. It would help, I think,
to know the results of a HELP, /DEVICE command.

Also, do you have a color table loaded in your IDL session?
Try loading color table 0 before you run your program.
Does that do anything?

I'm thinking that you may actually be in an 8-bit
environment (where object graphics colors don't work
as well as you would hope) and that IDL is having
difficulty choosing a white color from the destination
palette. Yellow may be as close as it can get. Anyway,
the above command will offer more clues. Please
also included your visual depth and class:

IDL> Device, Get_Visual_Depth=theDepth, Get_Visual_Name=theName
IDL> Print, theDepth, theName

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: !x.region,!y.region
Next Topic: Re: tvrd and device,decomposed=0

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

Current Time: Fri Oct 10 13:47:17 PDT 2025

Total time taken to generate the page: 0.79564 seconds