...

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



vorl
04-21-2008, 07: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! :)

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

Eric

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

mjlorbet
04-22-2008, 11:47 PM
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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum