2012-06-25 102 views

回答

1

我想許多的這些,你可以嘗試出來,並完成清單:

Object.getOwnPropertyNames(CanvasRenderingContext2D.prototype); 

["putImageData", 
"rect", 
"setLineJoin", 
"clearShadow", 
"isPointInPath", 
"strokeRect", 
"createRadialGradient", 
"drawImage", 
"measureText", 
"translate", 
"setLineCap", 
"arc", 
"fillRect", 
"setTransform", 
"stroke", 
"drawImageFromRect", 
"setFillColor", 
"createPattern", 
"setAlpha", 
"setShadow", 
"strokeText", 
"createLinearGradient", 
"setCompositeOperation", 
"fill", 
"transform", 
"rotate", 
"quadraticCurveTo", 
"setMiterLimit", 
"clip", 
"scale", 
"arcTo", 
"clearRect", 
"bezierCurveTo", 
"fillText", 
"restore"] 
+0

感謝,雖然是啊,你說好一些他們不會直接改變畫布圖像 – user730569

+0

@ user730569搞清楚這只是搜索方法或試用或查看https://developer.mozilla.org/en/DOM/CanvasRenderingContext2D ...這對你來說是合適的任務,因爲你是一個關心這個信息,你不覺得嗎? ,p – Esailija