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

Home » Public Forums » archive » Re: problem with "xloadct"
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: problem with "xloadct" [message #27871] Mon, 12 November 2001 07:13 Go to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Enrique Joven (eja@ll.iac.es) writes:

> I have an unapealling problem with the "xloadct" function in the
> SUN-environment. It works proporly in any machine, excepting the
> ULTRA-10 one, maybe because it uses 24-bit colors.
>
> The widget is properly initialized, and it seems to work,
> but it is not able to change the palette or the correction or
> whatever of the current image displayed.
>
> Anyone knows anything about this problem?

It is not a problem so much as it is the way
24-bit color displays work. You must re-display
your graphics after you change the colors in the
color table. There is no direct connection between
the colors in current graphics windows and the colors
currently loaded in the color table. This is exactly
why people *wanted* 24-bit color in the first place. :-)

Re-dislaying your graphics is not so hard. See
the UpdateCallback and UpdateCBData keywords to
XLoadCT, for example. Here is an article that
shows you how to update colors in a widget program:

http://www.dfanning.com/color_tips/noxloadct.html

My program XColors has even more flexible methods for
updating the colors in your programs:

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

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: problem with "xloadct" [message #27965 is a reply to message #27871] Mon, 12 November 2001 10:09 Go to previous message
Enrique Joven is currently offline  Enrique Joven
Messages: 2
Registered: November 2001
Junior Member
Thanks a lot David!

It works! It was my problem exactly!

Enrique





>
> http://www.dfanning.com/color_tips/noxloadct.html
>
> My program XColors has even more flexible methods for
> updating the colors in your programs:
>
> http://www.dfanning.com/programs/xcolors.pro
>
> 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

--

____________________________________________________________ _________

Dr Enrique Joven-Alvarez Phone : 34 922 605332
Electronics & Detectors Department Fax : 34 922 605210
Instituto de Astrofisica de Canarias (IAC) E-mail: eja@ll.iac.es
38200, La Laguna, Tenerife
Canary Islands (SPAIN)
____________________________________________________________ _________
Official Web-Site http://www.iac.es
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: autoregressive code
Next Topic: Re: HASP/ flexLM licensing conflict

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

Current Time: Wed Oct 08 14:00:47 PDT 2025

Total time taken to generate the page: 0.00544 seconds