aspose file tools*
The moose likes Applets and the fly likes Export Applet to Image 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" Watch "Export Applet to Image" New topic
Author

Export Applet to Image

Ravi Gupta
Ranch Hand

Joined: Jul 15, 2006
Posts: 38
Hi, i have a j2ee based application that launches an applet which displays a graph based on some data pulled from a database. My question is that can i add an element to the applet that can export the current applet to an image file like jpeg?


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

Joined: Mar 22, 2005
Posts: 39551
    
  27
The java.awt.Robot.createScreenCapture method can take screenshots, but the applet would need to be signed to be allowed to do this.

The method takes a Rectangle parameter that tells it which area of the screen to capture; you'll need to play around with that to find out what value you need to pass to it that covers just the applet.


Ping & DNS - updated with new look and Ping home screen widget
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Export Applet to Image
 
Similar Threads
Export Applet to Image file
Create Image object
applet issue
Question about UML
Sending email