Hello,
I want to crop my canvas.toDataURL()
before sending it on the server, but I didn't find how :(
Here's my code :
TakePhoto: function() {
var myCanvas = document.getElementById('game');
var dataURL = myCanvas.toDataURL();
// crop the dataURL
}
So, how to crop the dataURL ?
Can anyone help me ?
Thanks in advance
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…