Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.

Re: print image to file

If you want to capture a VisAD display to a file format besides
JPEG, you can use DisplayImpl.getImage() to capture the current
display to a BufferedImage and use it for whatever imaging
operation you want.

For example, Sun's optional Java Advanced Imaging package can
save to many other image file formats.

-Curtis

At 02:12 PM 3/1/2002, Luke Catania wrote:
>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


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