已采纳回答 / 码农2012
ctx2.drawImage(this.pic,this.x[i]-this.l[i]*0.5,this.y[i]-this.l[i]*0.5,this.l[i],this.l[i]);去掉pic前面的.this
2016-10-21
最新回答 / 慕粉1461495807
Draw.js:2 Uncaught TypeError: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The provided value is not of type '(HTMLImageElement or HTMLVideoElement or HTMLCanvasElement or ImageBitmap)'出现这个问题怎么解决?图片地址也写了啊: var bgpic=new Image();function ga...
2016-10-18
已采纳回答 / 请叫我蜗牛小姐
ctx2.save(); ctx2.globalAlpha = 0.6; ctx2.lineWidth = 20; ctx2.lineCap = "round"; ctx2.strokeStyle = "#3b154e"; for (var i = 0; i < this.num;i++) { ctx2.beginPath(); ctx2.moveTo(this.x[i], canHeight); ctx2.lineTo(...
2016-10-09