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: saving images on a linux box

Hi Ugo-

Ugo Taddei wrote:

A note for the archives. The following works with jdk1.4:

import javax.imageio.*;

...

FileOutputStream fos = new FileOutputStream(file);
ImageIO.write(display.getImage(),"JPG",fos);
fos.flush();
fos.close();

if you swap "JPG" for "PNG" the img is saved as such.

but then you are 1.4 dependent. ;-)  VisAD strives to be
1.2 dependent.  While there are many advantages to 1.4,
it is a space drain, it has problems with ATI graphics cards
on laptops, needs administrative privileges to install on
Windows XP, and a stable version (1.4.2) is not available
on all platforms.  I'm not saying don't use it, but 1.4
can be fraught with "issues".

Don
*************************************************************
Don Murray                               UCAR Unidata Program
dmurray@xxxxxxxxxxxxxxxx                        P.O. Box 3000
(303) 497-8628                              Boulder, CO 80307
http://www.unidata.ucar.edu/staff/donm
*************************************************************



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