Merhaba,

document.body.appendChild(canvas);
var myImage = canvas.toDataURL("image/png");
alert(myImage);

Kolaylıklar.