[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Newbie]writing JPEG or GIF file with plot?
Yopsolo (firstname.lastname@example.org) 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:
Your code will look something like this:
thisDevice = !D.Name
image = TVRead(/JPEG)
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: email@example.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155