View Full Version : Capturing a div & exporting to a image

04-21-2008, 08:19 PM
Hi there

I have quite a complicated (in my opinion) request.
I have a div with various information in it such as images and text. I was wondering if it was possible to capture this div (like a screencap) and export it as a image file (eg. png, jpg etc.).

Cheers and thanks in advance! :)

04-22-2008, 06:24 AM
JavaScript does not have this ability.


04-22-2008, 03:34 PM
ok thanks...any idea what i could use?

04-23-2008, 12:47 AM
if you're looking for a way to do it programmatically, you'd have to get a commercial screencapture utility, find a way to instantiate it through activex, make certain your div is at a certain position in the screen, perform the capture, and store the file... this strikes me as being too complicated for just something to do... if you're running windows, just hit printscreen with the div on the screen, open paint, hit ctrl-v and crop the picture to only contain the div.