Re: problem with TVRD [message #7689] |
Wed, 11 December 1996 00:00 |
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.
|
|
|