Open jacklincao opened 5 years ago
When I use scene.canvas.getSnapshot, The img's height is incorrect, and I find line 154 have 2 iwidth in canvas2image.js, It's should be oSaveCtx.drawImage(oCanvas, 0, 0, oCanvas.width, oCanvas.height, 0, 0, iWidth, iHeight);
scene.canvas.getSnapshot
oSaveCtx.drawImage(oCanvas, 0, 0, oCanvas.width, oCanvas.height, 0, 0, iWidth, iHeight);
Thanks! If you like, please make a PR and then I'll merge. This bug has actually been affecting users, so it's great that you found this.
ok, I will make a PR soon.
When I use
scene.canvas.getSnapshot
, The img's height is incorrect, and I find line 154 have 2 iwidth in canvas2image.js, It's should beoSaveCtx.drawImage(oCanvas, 0, 0, oCanvas.width, oCanvas.height, 0, 0, iWidth, iHeight);