Computer Science Canada

Pic.Save in Java Applets?

Author:  Kuntzy [ Fri Jan 07, 2005 11:44 pm ]
Post subject:  Pic.Save in Java Applets?

Does anyone know if there is a way to do sumthing like Pic.Save in Turing, through Applets ... I have searched Google with no luck, but it could be my searching techniques.

Author:  wtd [ Sat Jan 08, 2005 12:02 am ]
Post subject: 

Search Google with "site:java.sun.com".

Author:  rizzix [ Sat Jan 08, 2005 12:10 am ]
Post subject: 

well if ur double buffering.. it easy.. just use the buffer image and do something similar as follows:
code:
import javax.imageio.*;

code:
try {
        //file = new File("image.png");
        file = new File("image.jpg");
        ImageIO.write(bufferImg, "jpg", file);
        //ImageIO.write(bufferImg, "png", file);
    } catch (IOException e) {
    }

Author:  Kuntzy [ Sun Jan 09, 2005 1:01 pm ]
Post subject: 

Thanx a lot rizzix, that exactly what i was looking for!


: