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

Home » Public Forums » archive » Re: Color conversions
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 conversions [message #61241] Thu, 10 July 2008 09:36 Go to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
David Fanning wrote:
> MichaelT writes:
>
>> here is something I'd like to do and I do not know how, despite some
>> lengthy searches and trials:
>>
>> Say, I have displayed an image in a window and plotted some other
>> things on top. All that with a certain color table. Later, I want to
>> switch to a different color table and display the very content with
>> the new color table. I do not want to do all the displaying and
>> plotting, again. Just read the content of the window an display it
>> with another color table. So I tried something with TVRD - without any
>> success.
>> How would you do it? Is there a simple way?
>
> Not only is there no simple way, I think there is basically
> no way, unless you maybe are still using an 8-bit display.
>
> But, typically, people solve this problem by loading a new
> color table and re-displaying the graphic. :-)

And it should be easy, right? I mean you've encapsulated all your display code into a
routine, say "display_data" (right?), so all you have to do is

; default color table index
cidx = 0

repeat begin

; Load color table
loadct, cidx

; display data
display_data, mydata

; Get new colour table index
read, "New color table index [0-40] : ", cidx

endrep until (cidx lt 0 or cidx gt 40)


?

cheers,

paulv
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Random windows VM errors
Next Topic: Re: Random windows VM errors

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

Current Time: Sat Oct 11 15:27:35 PDT 2025

Total time taken to generate the page: 0.11455 seconds