摘要:
背景 今天在博問中看到一個問題:用canvas 的 lineto方法畫對角線,但畫出來的圖形不對? 這是一個很常見的誤區(qū),這里給大家細(xì)說一下。原理 在w3網(wǎng)站上是這樣解釋的:Thecanvaselement has two attributes to control the size of the coordinate space:widthandheight. These attributes, when specified, must have values that arevalid non-negative integers.Therules for parsing non-ne... 閱讀全文
posted @ 2012-02-28 18:23
artwl
閱讀(17889)
評論(5)
推薦(5)
浙公網(wǎng)安備 33010602011771號