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.
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
visad
archives: