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.

Re: print image to file

John,

Here's the answer from a previous email on this subject:

The static method:

visad.util.Util.captureDisplay(DisplayImpl disp, String filename)

will take the contents of the 'disp' and save it to 'filename' in
JPEG format.

I don't know how to save it in other formats unless there is a way through
the Java 2D API.

Luke

----- Original Message -----
From: "John Yao" <johnyao@xxxxxxxx>
To: <visad-list@xxxxxxxxxxxxx>
Sent: Friday, March 01, 2002 1:45 PM
Subject: print image to file


> Hello,
>
> Does anyone know some ways to print the visad displays to file (for
> example, tiff, jpg and etc.)?  How about printing them to the printer?
Any
> comments or suggestions would be very helpful since i am just at a
starting
> point.  Thanks very much!
>
> john
>
>


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