Re: colors in IDL [message #9053] |
Fri, 30 May 1997 00:00 |
Liam Gumley
Messages: 473 Registered: November 1994
|
Senior Member |
|
|
Dr.Bringezu,Frank wrote:
> is there anybody able to tell me how to overcome 256 colors in IDL.
> There could be a simple solution but in fact I'm a new user. Sorry if
> this is a boring questing.
You are always limited to a maximum color *table* size of 256. However,
depending on your display type, you may have a color *palette* size of
up to 16777216.
If you are running IDL on a PC or Mac, then you need to change your
system display setup (independent of IDL) to get more than 256 colors.
You can find a lot of very useful information about colors in IDL at
http://www.dfanning.com/documents/tips.html
Cheers,
Liam.
|
|
|
Re: colors in IDL [message #9057 is a reply to message #9053] |
Fri, 30 May 1997 00:00  |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
Frank writes:
> is there anybody able to tell me how to overcome 256 colors in IDL.
> There could be a simple solution but in fact I'm a new user. Sorry if
> this is a boring questing.
I presume you are asking how to use IDL on a display capable of
greater than 256 colors. This is difficult to do with IDL 4.0,
although not impossible. There is an article or two on my
web page explaining how to write programs (and specifically
how to work with colors) so that they work on 8-bit and 24-bit
displays equally well.
IDL 5.0 provides more help in this area, assuming you are going
to be using object graphics exclusively. But as a new user I'm
not sure object graphics is what you want to tackle right off
the mark. :-)
Just a note about IDL color. I have been teaching various "color
protection" schemes in an IDL class this week, and I notice that
widget tracking events (which are required to let the widget
program know that the user is within the bounds of the widget
and that it should reload its color tables) are extremely
unreliable in IDL 5.0 with a WindowsNT machine. If I move
my cursor quickly into a widget I only get a tracking
event about one time in three. Has anyone else noticed this
problem?
David
----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
Customizable IDL Programming Courses
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com
|
|
|