Re: printing

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


  • 2001 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: