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

Home » Public Forums » archive » Re: [Newbie]writing JPEG or GIF file with plot?
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: [Newbie]writing JPEG or GIF file with plot? [message #25139] Tue, 22 May 2001 08:23 Go to next message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Yopsolo (planchais@arguin.observ.u-bordeaux.fr) writes:

> I have writting a procedure which draw on the screen 2D graphics
> (withthe help of widgets and the functions PLOT, OPLOT and XYOUTS).
>
> I would know how I have to transform my procedure in order to write my
> graphic on a JPEG or GIF file without showing on screen my graphic.

You will have to draw your graphics in either a pixmap window
or in the Z graphics buffer. You can take a screen snapshot and
write the proper file by using my TVREAD procedure:

http://www.dfanning.com/programs/tvread.pro

Your code will look something like this:

thisDevice = !D.Name
Set_Plot, 'Z'
Plot, ....
OPlot, ....
XYOutS, ...
image = TVRead(/JPEG)
Set_Plot, thisDevice

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
Re: [Newbie]writing JPEG or GIF file with plot? [message #25224 is a reply to message #25139] Wed, 23 May 2001 03:12 Go to previous message
Yopsolo is currently offline  Yopsolo
Messages: 2
Registered: May 2001
Junior Member
hy,

Thank you for your help and for your program.

I will try it in the next days and I will give you the result of my tests.
( and perhaps others questions if I've failed though I hope not)

Yann



>
> You will have to draw your graphics in either a pixmap window
> or in the Z graphics buffer. You can take a screen snapshot and
> write the proper file by using my TVREAD procedure:
>
> http://www.dfanning.com/programs/tvread.pro
>
> Your code will look something like this:
>
> thisDevice = !D.Name
> Set_Plot, 'Z'
> Plot, ....
> OPlot, ....
> XYOutS, ...
> image = TVRead(/JPEG)
> Set_Plot, thisDevice
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting
> Phone: 970-221-0438 E-Mail: davidf@dfanning.com
> Coyote's Guide to IDL Programming: http://www.dfanning.com/
> Toll-Free IDL Book Orders: 1-888-461-0155
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: IDL interpreter questions - can someone (D.Fanning) explain - TIA
Next Topic: color woes - redux

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

Current Time: Wed Oct 08 15:23:39 PDT 2025

Total time taken to generate the page: 0.00520 seconds