cutImg.js
// this function takes in an image and replicates it
this function takes in an image and replicates it
this function takes in an image and replicates it
function copyImg(canvas) {
var output = new Image();
output.src = canvas.toDataURL("image/png");
return output;
}
function copyImg ( canvas ) { var output = new Image ( ) ; output . src = canvas . toDataURL ( "image/png" ) ; return output ; }
this function takes in an image and replicates it
this function takes in an image and replicates it