myStrokes = [];
}
+
+
+
function makeImage() {
-
-
+ if(canv1.getContext) {
+ var myImage = canv1.toDataURL("image/png");
+ }
+
+ var imageElement = document.getElementById("MyPix"); // Get the img object.
+ imageElement.src = myImage; // Set the src to data from the canvas.
+ $('#imgSuccess').text("see below, right click to save image");
+ setTimeout( function() {
+ $('#imgSuccess').text("");
+ }, 3000);
}
@@ -318,6 +329,10 @@