./
x2png.pro
topx2png
x2png [, filename] [, SILENT=SILENT] [, TRANSPARENT=TRANSPARENT]
converts the current x-displayed window to png makes this easy - and in every case i have tried looks great :) CATEGORY: data visilation
uses tvrd to create image array writes the png
Parameters
- filename in optional
filename for the png image with or without the .png if none specified idl.png is created
Keywords
- SILENT in optional
silent mode
- TRANSPARENT in optional
Set this keyword to an array of pixel index values which are to be treated as "transparent" for the purposes of image display. This keyword is only valid for single channel (color indexed)
Examples
plot, findgen(100)
x2png, 'mygraph'
Author information
- History:
Tue Feb 10 15:02:01 2004, Brian Larsen Stolen from x2jpg written by me Wed Nov 5 17:01:27 2003, Brian Larsen added sil mode Mon Jul 15 17:54:43 2002, Brian Larsen Written, tested, I just learned how to do this and imagine doing it a lot so this will be handy
Statistics
| Lines: | 13 |
| McCabe complexity: |
File attributes
| Modifcation date: | Tue Sep 9 14:19:54 2008 |
| Lines: | 76 |
![[attach.png]](idldoc-resources/attach.png)