fix : reduce piskel model size : fix import feature

This commit is contained in:
jdescottes 2013-11-13 23:51:27 +01:00
parent df4978f6af
commit e9a2ccfd1d

View File

@ -36,7 +36,7 @@
context.drawImage(image, 0,0,w,h,0,0,w,h);
var imgData = context.getImageData(0,0,w,h).data;
return pskl.utils.FrameUtils.createFromImageData(imgData);
return pskl.utils.FrameUtils.createFromImageData(imgData, w, h);
},
createFromImageData : function (imageData, width, height) {