Question
components photo (HTML5 canvas)
Hello everyone .. How are you?
I hope that you will be healthy and well-being and away from us Corona.
Please experts to help me .
Choose any image from the device ?
https://drive.google.com/drive/folders/1oFAxc49AuXqkGmPd-b4poiY4eu9ERQLa?usp=sharing

var root = this;
var putFile;
root.stop();
root.INS_PHO.addEventListener("click", function (e) {
root.PHO_1,
function (container) {
if (bitmapA)
container.removeChild(bitmapA);
bitmapA = new createjs.Bitmap(e.target.result);
setTimeout(function () {
container.addChild(bitmapA);
}, 0);
};
});
root.uploadImage = function (container, loadCallback) {
INS_PHO.addEventListener("change", function (e) {
if (e.currentTarget.files && e.currentTarget.files[0]) {
var reader = new FileReader();
reader.onload = function (e) {
loadCallback(container);
}
reader.readAsDataURL(e.currentTarget.files[0]);
} else {}
});
};

