javascript - Taking ScreenShot Using MVC4 -
I have a site in which the user can take a screenshot and send it via mail.
How can I take a screenshot at the click-button in Javascript or jquery event
Please find some references to me
Jquery
< P>/ P>
$ ("# click"). Html2canvas (document.body, {honored: function (canvas) {$ .post ('../ Home / proof', {images: canvas.toDataURL} ()}, function (data) {});}}); & Lt; Input type = "button" id = "click" value = "click" /> [Hppost] Public Action Result Proof () {// @RevenParam (value = "image"); String imagebase 64; // byte [] bytes = imageBase64.replaceAll ("data: image /.+; base64,", "") .getBytes (); See Return (); }
but it kills the controller .. Pls help
The best way to get a junky screenshot is to link. You just give us the URL or JS document.URL
Comments
Post a Comment