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

Home » Public Forums » archive » Re: Creating a GIF file from a graphics window in IDL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Creating a GIF file from a graphics window in IDL [message #20381] Wed, 21 June 2000 00:00
Liam E. Gumley is currently offline  Liam E. Gumley
Messages: 378
Registered: January 2000
Senior Member
Michael W Asten wrote:
>
> Liam Gumley wrote:
>
>> <ykadkh1@uic.edu> wrote in message news:394EA050.1C70A2DB@uic.edu...
>>> I was wondering if anyone knows how to write a GIF or JPEG file in IDL
>>> using the image that appears in a window. Otherwise, it would also be
>>> helpful If there was a way to create an array from the window's
>>> contents. Thank you.
>>
>> Try SAVEIMAGE:
>> http://cimss.ssec.wisc.edu/~gumley/imagetools.html
>
> Or (with less sophisication) use the native idl commands
> write_gif,filename.gif,tvrd()
> write_jpeg,filename.jpg,tvrd()
>
> I regularly use these from the idl command line (or within a program) to
> grab an image and then insert the resulting "picture file" into a WORD
> report or powerpoint presentation.

WRITE_GIF in combination with TVRD will only work reliably in 8-bit
display mode, while WRITE_JPEG in combination with TVRD will only work
reliably in 24-bit display mode. This is why I wrote SAVEIMAGE: it works
reliably in either 8-bit or 24-bit mode.

Cheers,
Liam.
http://cimss.ssec.wisc.edu/~gumley
Re: Creating a GIF file from a graphics window in IDL [message #20385 is a reply to message #20381] Wed, 21 June 2000 00:00 Go to previous message
Michael Asten is currently offline  Michael Asten
Messages: 53
Registered: March 1999
Member
Liam Gumley wrote:

> <ykadkh1@uic.edu> wrote in message news:394EA050.1C70A2DB@uic.edu...
>> I was wondering if anyone knows how to write a GIF or JPEG file in IDL
>> using the image that appears in a window. Otherwise, it would also be
>> helpful If there was a way to create an array from the window's
>> contents. Thank you.
>
> Try SAVEIMAGE:
> http://cimss.ssec.wisc.edu/~gumley/imagetools.html

Or (with less sophisication) use the native idl commands
write_gif,filename.gif,tvrd()
write_jpeg,filename.jpg,tvrd()

I regularly use these from the idl command line (or within a program) to
grab an image and then insert the resulting "picture file" into a WORD
report or powerpoint presentation.

Regards,
Michael Asten
Re: Creating a GIF file from a graphics window in IDL [message #20397 is a reply to message #20381] Mon, 19 June 2000 00:00 Go to previous message
Liam E. Gumley is currently offline  Liam E. Gumley
Messages: 378
Registered: January 2000
Senior Member
<ykadkh1@uic.edu> wrote in message news:394EA050.1C70A2DB@uic.edu...
> I was wondering if anyone knows how to write a GIF or JPEG file in IDL
> using the image that appears in a window. Otherwise, it would also be
> helpful If there was a way to create an array from the window's
> contents. Thank you.

Try SAVEIMAGE:
http://cimss.ssec.wisc.edu/~gumley/imagetools.html

Cheers,
Liam.
http://cimss.ssec.wisc.edu/~gumley
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: multi conditional for loops
Next Topic: Re: exporting data

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

Current Time: Thu Oct 09 06:53:19 PDT 2025

Total time taken to generate the page: 1.12129 seconds