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

Home » Public Forums » archive » Re: How to make GIF file (2) ?
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 to make GIF file (2) ? [message #4524] Tue, 13 June 1995 00:00 Go to previous message
thompson is currently offline  thompson
Messages: 584
Registered: August 1991
Senior Member
bleau@UMDSP.UMD.EDU (Lawrence Bleau) writes:

> Hi again. I posted a message last week re generating a GIF file from IDL so I
> can serve it over WWW, and received quite a few responses so far. All of them
> have directed me to use TVRD and WRITE_GIF. Thanks to those who responded.
> This does not, however, solve my problem entirely. Here are the additional
> details.

> I had learned about TVRD and WRITE_GIF from TFM before I posted my initial
> message, and had hoped there was a better way of approaching the problem (like
> with a PLOT option). I put up a simple plot and called TVRD(0,0,100,100,0),
> followed by a WRITE_GIF. I moved the resultant file to my WWW server
> directory, went to my Mac, fired up Netscape, and viewed the image. It was a
> small square image in the corner of the graph, showing the axes. So far, so
> good. I next called TVRD(0,0,200,200,0) and put it in another file. This
> displayed a rectangular image with some lines, but was not recognizable as part
> of the graph (well, maybe if you strain). The rectangle was roughly twice the
> width of the first subimage and half the height, though I wouldn't swear to it
> (I didn't measure it). Finally, I tried it with TVRD(0,0,500,500,0), and when
> viewed this produced a *blank* image! There's something going on here I do not
> understand, folks, and it puts a big question mark beside the entire process.

(rest deleted)

As I recall, if you use TVRD() without any parameters, it automatically reads
in the entire window. I suspect that's what you want to do. If you use the
'Z' device, as mentioned in other posts, then you can use the command

IDL> DEVICE,SET_RESOLUTION=[xsize,ysize]

to make the size of the pseudo-display the desired size of the GIF file before
doing any plotting.

Bill Thompson
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Getting current time
Next Topic: Re: Editing Ascii File

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

Current Time: Thu Oct 09 23:24:33 PDT 2025

Total time taken to generate the page: 0.16264 seconds