- To: Ricardo Mantilla <ricardo@xxxxxxxxxxxxxxxxxx>
- Subject: Re: saving images on a linux box
- From: Ugo Taddei <p6taug@xxxxxxxxxxx>
- Date: Tue, 24 Jun 2003 14:47:23 +0200
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
- Follow-Ups:
- Re: saving images on a linux box
- From: Don Murray
- Re: saving images on a linux box
- References:
- Re: saving images on a linux box
- From: Curtis Rueden
- Re: saving images on a linux box
- From: Ricardo Mantilla
- Re: saving images on a linux box