File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Applets and the fly likes save applet as image Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "save applet as image" Watch "save applet as image" New topic
Author

save applet as image

htinky kwinky
Greenhorn

Joined: Apr 11, 2008
Posts: 1
how to save an applet generated graph as an image in any format? I have an applet code to generate a graph and want to automatically save that image on the disk to use it later. I want to do this for 13,000 records. Thanks
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39547
    
  27
Hello "htinky kwinky"-

Welcome to JavaRanch.

On your way in you may have missed that we have a policy on screen names here at JavaRanch. Basically, it must consist of a first name, a space, and a last name, and not be obviously fictitious. Since yours does not conform with it, please take a moment to change it, which you can do right here.

is there any user interaction happening with the applet? If not, why does it need to be an applet? Applets cause certain complications -especially if you want to perform file I/O- so maybe there are better ways to do this?

This example shows how to save a Graphics2D-generated image to a file.


Ping & DNS - updated with new look and Ping home screen widget
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: save applet as image
 
Similar Threads
editing images then saving
Saving image at runtime
graphs in jsf
Want simple X-Y graph, save as JPEG
How to Save applet page as a JPG file