mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
fix : reduce piskel model size : fix import feature
This commit is contained in:
parent
df4978f6af
commit
e9a2ccfd1d
@ -36,7 +36,7 @@
|
|||||||
|
|
||||||
context.drawImage(image, 0,0,w,h,0,0,w,h);
|
context.drawImage(image, 0,0,w,h,0,0,w,h);
|
||||||
var imgData = context.getImageData(0,0,w,h).data;
|
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) {
|
createFromImageData : function (imageData, width, height) {
|
||||||
|
Loading…
Reference in New Issue
Block a user