Re: How to make GIF file (2) ? [message #4524] |
Tue, 13 June 1995 00:00  |
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
|
|
|