我想在画布上绘制线条但总是在线条的末端变成一个角度。如何克服这个问题?
提前致谢..
这是我的代码..
var sigCanvas = document.getElementById("canvasSignature");
var context = sigCanvas.getContext("2d");
context.strokeStyle = 'black';
context.lineWidth = 20;
var img = new Image();
var a = document.getElementById("hidVal").value;
img.src = a;
img.onload = function(){
context.drawImage(img,0,0);
}