this.upload_button.addEventListener("click", fl_MouseClickHandler_3.bind(this)); function fl_MouseClickHandler_3() { var reader = new FileReader(); reader.onload = function (event) { var dataUri = event.target.result, context = document.getElementById("mycanvas").getContext("2d"), img = new Image(); img.onload = function () { context.drawImage(img, 100, 100); }; img.src = dataUri; reader.readAsDataURL('file'); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)