Sunday, 15 February 2015

javascript - Save screenshot of a DIV as and image -


How do the screenshots of a DIV have more than one picture? Actually I am dragging the images into DIV and using screenshots, but using Jackry or Javascript, I am using a server-side scripting language.

Assuming that you have the button to click (to trigger the capture) And that there are images on the same domain, please load the html2canvas JS file, then add it:

  $ ('#btn'). Click here (function () {html2canvas ($ ('# DIV'), {ONRANDARD: Function (Canvas) • // Do something with canvas element - upload, add a display element, etc. For example: var myImage = Canvas.toDataURL ("image / png"); window.open (myImage);}});});  

No comments:

Post a Comment