I have a html tag canvas.
I can draw on it successfully, and it looks really good, as i wanted to
Tested Chrome, Firefox ok, IE 11 needs adding 2 extra js library to support promise.
function takeSnapShot() {
html2canvas(document.querySelector("#capture")).then(function(canvas9) {
var theimage9 = canvas9.toDataURL("image/png");
document.querySelector("#theimage9").src = theimage9;
});
}
Hello world!
![]()