Pic.Save in Java Applets?
Author |
Message |
Kuntzy
![](http://akamai.tehnokratt.net/pictures/henrik/henrik_0047_ico.jpg)
|
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. |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
wtd
|
Posted: Sat Jan 08, 2005 12:02 am Post subject: (No subject) |
|
|
Search Google with "site:java.sun.com". |
|
|
|
|
![](images/spacer.gif) |
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) {
} |
|
|
|
|
|
![](images/spacer.gif) |
Kuntzy
![](http://akamai.tehnokratt.net/pictures/henrik/henrik_0047_ico.jpg)
|
Posted: Sun Jan 09, 2005 1:01 pm Post subject: (No subject) |
|
|
Thanx a lot rizzix, that exactly what i was looking for! |
|
|
|
|
![](images/spacer.gif) |
|
|