NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
Hi Igor, > is it possible to print the content of a Display into a graphics file or on a > printer. You can use the DisplayImpl.getImage() method to get a BufferedImage of the display contents, then create a JPEG as in visad.ss.BasicSSCell.captureImage(). Note that if you do this from a GUI callback, you need to wrap the code in its own Thread, as in visad.ss.FancySSCell.captureDialog(). To print display contents, see the javadoc comments to visad.DisplayImpl.getPrintable(). Good luck, Bill ---------------------------------------------------------- Bill Hibbard, SSEC, 1225 W. Dayton St., Madison, WI 53706 hibbard@xxxxxxxxxxxxxxxxx 608-263-4427 fax: 608-263-6738 http://www.ssec.wisc.edu/~billh/vis.html
visad
archives: