Failedtoexecute'toDataURL'on'HTMLCanvasElement':TaintedcanvasesmaynotbeexportedletoCanvas2=this.viewer.canvas.children[0];this.mycanvas=document.createElement("canvas");this.mycanvas.width=oCanvas2.width;this.mycanvas.height=oCanvas2.height;letdestCtx=oCanvas2.getContext('2d');letimage=newImage();image.crossOrigin="anonymous";image.src=oCanvas2.toDataURL("image/png");destCtx.drawImage(image,0,0);请问这种应该怎么修改?
相关分类