1
KineticJS 스테이지의 일부를 저장하려고합니다.오프셋을 사용하여 스테이지의 이미지 저장 KineticJS HTML5
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) 것입니다 :이 코드는 완벽하게 노력하고 있습니다. 어떤 생각?