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

Home » Public Forums » archive » Re: problem with TVRD
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: problem with TVRD [message #7689] Wed, 11 December 1996 00:00
Liam Gumley is currently offline  Liam Gumley
Messages: 473
Registered: November 1994
Senior Member
Ken Dere wrote:
> I am having the following problem which I believe is associated with
> TVRD. I display an image to a window, after calling WINDOW with
> retain=2. I then do an XYOUTS to put some text in the window. I then
> do a TVRD and a WRITE_GIF. When displaying the gif file with XV, the
> image seems to be OK but the text is not properly reproduced. Any
> suggestions would be appreciated.

Ken,

Perhaps you are not saving the color table (an example of your code
would be helpful). Try this:

window,/free,retain=2
loadct,0
tvscl,dist(256)
xyouts,0,0,'Hello',charsize=10,/device
tvlct,r,g,b,/get ; gets the color lookup table
write_gif,'test.gif',tvrd(),r,g,b

I recall having this problem with an IDL 3.6 on an SGI platform. However
these days with IDL 4.0.1 on SGI I don't have any problems (using
WRITE_GIF in the manner shown above).

Cheers,
Liam.
[Message index]
 
Read Message
Previous Topic: looking for IDL streamlines help
Next Topic: problem with TVRD

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

Current Time: Sat Oct 11 10:47:38 PDT 2025

Total time taken to generate the page: 0.00250 seconds