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.
Has anyone successfully used JPEGImageEncoder to create JPEG files from BufferedImages, such as those returned by DisplayImpl.getImage()? The following code: OutputStream stream new FileOutputStream("jpeg_file"); JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(stream); BufferedImage image = display.getImage(true); encoder.encode(image); hangs in the call to encoder.encode(). Thanks, 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
visad
archives: