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

Home » Public Forums » archive » Re: Getting the current color table
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: Getting the current color table [message #36966 is a reply to message #36964] Wed, 12 November 2003 04:05 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
df23775@hotmail.com writes:

> Is there a way that I (in the case, the program) can know which is the
> current color table?
>
> The program provides the function XLOADCT in which the user can change the
> color table. And I would like to know which one is in use. I have a feeling
> that that has to be somewhere, :). I tried to see if there is any parameter
> in XLOADCT and LOACT that provides me the number of the color table in the
> use. I believe that information is somewhere, but where? I looked also in
> the graphics system variables but I don't find it. Seems to have everything
> but the index of the color table in use.

The color changing program XCOLORS can do this. But, in general,
there is no way to tell the index of the color table in use.
The best XCOLORS can do is tell you the index of the color table
it last loaded. :-)

http://www.dfanning.com/programs/xcolors.pro

Cheers,

David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http:/www.dfanning.com/
Phone: 970-221-0438, IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Operator Precedence Tutorial
Next Topic: DNs independent from Datatypes for ENVI-Mosaics

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

Current Time: Wed Dec 03 16:20:53 PST 2025

Total time taken to generate the page: 0.00214 seconds