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

Home » Public Forums » archive » Re: Legend creation on an image
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: Legend creation on an image [message #48901 is a reply to message #48899] Fri, 02 June 2006 20:17 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
elsueniero@gmail.com writes:

> And the result is a grayscale RGB 1,1,1 to 20,20,20 bar. Not the
> desired result, using the colors I set on the first line.
>
> What could be wrong?

This command:

out = TVRD()

Now you have the variable out as an 8-bit image. So,
you have to Set_Plot to WIN, re-load your colors,
and set color decomposition OFF to see colors:

Set_Plot, 'WIN"
Loadct, colors, 1
Device, Decomposed=0, Get_Decomposed=curState
TV, out
Device, Decomposed=curState

Of course, you *could* use TVREAD and TVIMAGE and you
wouldn't have to worry about most of this. :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: HELP!!!!! How to use IDL to create a move?
Next Topic: how to open three single-band files simultaneously

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

Current Time: Sat Oct 11 00:01:24 PDT 2025

Total time taken to generate the page: 0.32177 seconds