This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Applets and the fly likes Export Applet to Image file Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Applets
Reply Bookmark "Export Applet to Image file" Watch "Export Applet to Image file" New topic
Author

Export Applet to Image file

Ravi Gupta
Ranch Hand

Joined: Jul 15, 2006
Posts: 38
I want to export an applet to an image of same size. Image format can be PNG or JPEG. How should I go about it?


help your PC help you best
http://simplepccare.spaces.live.com
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35439
    
    9
You can paint the applet into a BufferedImage's Graphics object, and then save that using the ImageIO class.


Android appsImageJ pluginsJava web charts
Ravi Gupta
Ranch Hand

Joined: Jul 15, 2006
Posts: 38
Thanks a ton. Will proceed as suggested and will post the code for others too.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Export Applet to Image file
 
Similar Threads
Export Applet to Image
How to Export to Ms-Word?
Create Image object
Question about UML
applet issue