Re: saving images on a linux box

Hello,

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.

Cheers,

Ugo