【发布时间】:2012-11-09 16:40:13
【问题描述】:
我想保存 KineticJS 阶段的一部分。此代码运行良好:
stage.toDataURL({
width: 350,
height: 350,
mimeType: "image/jpeg",
callback: function(dataUrl) {
/*
* here you can do anything you like with the data url.
* In this tutorial we'll just open the url with the browser
* so that you can see the result as an image
*/
window.open(dataUrl);
}
});
}, false);
但我想要的是添加一个偏移量,因此图像将开始并坐标 (75,75) 舞台区域。有什么想法吗?
【问题讨论】:
标签: javascript html canvas kineticjs stage