下面的代码通过getImageData() 复制画布上指定矩形的像素数据,然后通过putImageData() 将图像数据放回画布: var c=document.getElementById("myCanvas"); var ctx=c.
確定! 回上一頁