this.imageEl.addEventListener("load", function(){ _this.onLoadCanvas(); });
+ Roo.log("loadCanvas");
+ Roo.log(src);
this.imageEl.src = src;
}
},
onLoadCanvas : function()
{
+ Roo.log("onLoadCanvas");
this.imageEl.OriginWidth = this.imageEl.naturalWidth || this.imageEl.width;
this.imageEl.OriginHeight = this.imageEl.naturalHeight || this.imageEl.height;
return;
}
- Roo.log("A");
if(!file || !this.urlAPI){
return;
}
- Roo.log("B");
this.file = file;
if(typeof(file.type) != 'undefined' && file.type.length != 0) {
this.cropType = file.type;
}
- Roo.log("C");
var url = _this.urlAPI.createObjectURL(_this.file);
- Roo.log("D");
_this.loadCanvas(url);
return;