Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Pic.Save in Java Applets?
Index -> Programming, Java -> Java Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Kuntzy




PostPosted: 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
Sponsor
sponsor
wtd




PostPosted: Sat Jan 08, 2005 12:02 am   Post subject: (No subject)

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




PostPosted: 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




PostPosted: Sun Jan 09, 2005 1:01 pm   Post subject: (No subject)

Thanx a lot rizzix, that exactly what i was looking for!
Display posts from previous:   
   Index -> Programming, Java -> Java Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: