0
How do I save the image to the desktop or some other folder on the user’s machine ?
I took the very good example of how to generate the image and save to a server folder here: Take Screen print and save image automatically in C#
I made an adaptation as the example below:
$("#btnImprimir").click(function () {
var target = $('#box-graphs');
html2canvas(target, {
onrendered: function (canvas) {
var dataUrl = canvas.toDataURL();
$.post('/Exame/Imagem', { 'data': dataUrl }, function (data) {
if (data == "1") {
alert('Imagem enviada com sucesso');
}
});
}
});
});