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

Home » Public Forums » archive » Re: how can I preserve colours when reading pixels with tvrd function
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: how can I preserve colours when reading pixels with tvrd function [message #61866 is a reply to message #61846] Thu, 07 August 2008 04:55 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
bam writes:

> I am using tvrd to capture the contents of an idl direct graphics
> window [idl code: im=tvrd(0,0,500,500) ], on which I have a
> combination of graphics, including plotted lines, xyouts text and a
> background display of a byte array with a colortable. the output of
> tvrd is a grayscale image that has lost all the colors in my original
> window...
> so how can i preserve the contents of my window and perhaps even save
> it as a gif, without distorting the colors of my colortable?

The short answer? Use TVREAD instead:

IDL> void = TVRead(/GIF)

You can find TVRead here:

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

You can find the long answer inside the TVREAD code. :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Previous Topic: Re: Price of ION
Next Topic: Provinding files for VM-Application

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

Current Time: Sat Oct 11 08:29:01 PDT 2025

Total time taken to generate the page: 3.83754 seconds