Results 1 to 4 of 4
- 08-26-2010, 04:03 AM #1
Member
- Join Date
- Aug 2010
- Posts
- 3
- Rep Power
- 0
How to do a screen capture of content on web page/join 2 images
I have a page where I am using Raphael.js to actually allow user to move a dot around the canvas which has a background image. What I am trying to do is to capture the end image of the canvas where I'll be able to see where the user placed the dot after the user clicks on a 'confirm position' button. I've thought of two methods, however I am not too sure of how to execute them.
Method 1: Just capture the canvas as an image. Somehow this isn't possible with Javascript alone and I'm not too sure if Raphael has a built in function to allow this. I also read about exporting the svg xml file and pass it through the a library like 'Batik' however I'm not exactly sure how to do that. The tutorials I've read are really confusing.
Method 2: To use the coordinates of the dot and overlay a dot image that I already have onto the background image and save it as an image.
Please advice and I hope I've been clear
- 08-26-2010, 04:11 AM #2
Java has a class: Robot that can capture a screen image.
to use it in an Applet requires giving the applet permission.
- 08-27-2010, 07:26 AM #3
Member
- Join Date
- Aug 2010
- Posts
- 3
- Rep Power
- 0
Thks norm, however it does not allow me to dynamically capture the area I want. e.g, if the user resizes the window, it captures the screen which i do not want. Is there any way I can make it capture the pixel area based on a specific window?
- 08-27-2010, 01:02 PM #4
Similar Threads
-
Join two images
By forumgopi in forum Java 2DReplies: 0Last Post: 05-14-2010, 05:40 AM -
Can't show images onto the screen
By javaexplorer in forum AWT / SwingReplies: 9Last Post: 01-14-2010, 06:31 PM -
capture webcam images with java
By MuslimCoder in forum Advanced JavaReplies: 3Last Post: 12-21-2009, 03:21 PM -
Need Help on Remote Host Screen Capture
By krishnaraoveera1294 in forum AWT / SwingReplies: 4Last Post: 03-13-2009, 10:56 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks