Pic.Save in Java Applets?
Author |
Message |
Kuntzy
|
Posted: 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. |
|
|
|
|
|
Sponsor Sponsor
|
|
|
wtd
|
Posted: Sat Jan 08, 2005 12:02 am Post subject: (No subject) |
|
|
Search Google with "site:java.sun.com". |
|
|
|
|
|
rizzix
|
Posted: Sat Jan 08, 2005 12:10 am Post subject: (No 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) {
} |
|
|
|
|
|
|
Kuntzy
|
Posted: Sun Jan 09, 2005 1:01 pm Post subject: (No subject) |
|
|
Thanx a lot rizzix, that exactly what i was looking for! |
|
|
|
|
|
|
|