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: Creating a gif file from a visad display

If you don't need it to be a gif, I have succesfully used code like this
to generate a png image.  You may be able to substitute in "gif" for
"png", but I remember it causing some problem.


BufferedImage image = display.getImage(true);
java.io.File file = new java.io.File("filename");
javax.imageio.ImageIO.write(image, "png", file);


HTH,
Ben


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