aspose file tools*
The moose likes Applets and the fly likes Export Applet to Image file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
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: 42608
    
  65
You can paint the applet into a BufferedImage's Graphics object, and then save that using the ImageIO class.


Ping & DNS - my free Android networking tools app
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://aspose.com/file-tools
 
subject: Export Applet to Image file