App下載

詞條

大約有 6,000 項(xiàng)符合查詢結(jié)果 ,庫(kù)內(nèi)數(shù)據(jù)總量為 78,250 項(xiàng)。(搜索耗時(shí):0.0049秒)

4071.CanvasContext.createLinearGradient

...ls/public/files/b5353462162097ed527e6bd21f3de5f6.gif) #### 示例代碼 ```javascript //.js const ctx = my.createCanvasContext('canvas') const grd = ctx.createLinearGradient(10, 10, 150, 10) grd.addColorStop(0, 'yellow') grd.addColorStop(1, 'blue') ctx.setFillStyle(grd) ctx.fillRect(20, 20, 250, 180...

http://www.o2fo.com/aliminiapp/aliminiapp-pjyu3bv3.html

4072.CanvasContext.drawImage

...ls/public/files/b5353462162097ed527e6bd21f3de5f6.gif) #### 示例代碼 ```javascript //.js const ctx = my.createCanvasContext('canvas') ctx.drawImage('https://img.alicdn.com/tfs/TB1GvVMj2BNTKJjy0FdXXcPpVXa-520-280.jpg', 2, 2, 250, 80) ctx.draw() ``` 顯示效果如下圖所示: ![canvas.drawimage...

http://www.o2fo.com/aliminiapp/aliminiapp-w4r53bv5.html

4073.CanvasContext.fillRect

...ls/public/files/b5353462162097ed527e6bd21f3de5f6.gif) #### 示例代碼 ```javascript //.js const ctx = my.createCanvasContext('canvas') ctx.fillRect(20, 20, 250, 80) ctx.setFillStyle('blue') ctx.draw() ``` 顯示效果如下圖所示: ![canvas.fillrect.png](https://gw.alipayobjects.com/zos/skylar...

http://www.o2fo.com/aliminiapp/aliminiapp-gkam3bv7.html

4074.CanvasContext.fillText

...ls/public/files/b5353462162097ed527e6bd21f3de5f6.gif) #### 示例代碼 ```javascript //.js const ctx = my.createCanvasContext('canvas') ctx.setFontSize(42) ctx.fillText('Hello', 30, 30) ctx.fillText('alipay', 200, 200) ctx.draw() ``` 顯示效果如下圖所示: ![canvas.filltext.png](https://gw....

http://www.o2fo.com/aliminiapp/aliminiapp-lztr3bv8.html

4075.CanvasContext.getImageData

...ls/public/files/b5353462162097ed527e6bd21f3de5f6.gif) #### 示例代碼 ```javascript // .js const ctx = my.createCanvasContext('canvas') ctx.getImageData({ x: 0, y: 0, width: 100, height: 100, success(res) { console.log(res.width) // 100 console.log(res.height) // 100 console.log(res.data instanceo...

http://www.o2fo.com/aliminiapp/aliminiapp-ip1y3bv9.html

4076.CanvasContext.lineTo

...ls/public/files/b5353462162097ed527e6bd21f3de5f6.gif) #### 示例代碼 ```javascript //.js const ctx = my.createCanvasContext('canvas') ctx.moveTo(10, 10) ctx.rect(10, 10, 100, 50) ctx.lineTo(110, 60) ctx.stroke() ctx.draw() ``` 顯示效果如下圖所示: ![ctx.lineto.png](https://gw.alipayobje...

http://www.o2fo.com/aliminiapp/aliminiapp-1jdg3bva.html

4077.CanvasContext.measureText

...ls/public/files/b5353462162097ed527e6bd21f3de5f6.gif) #### 示例代碼 ```javascript //.js const ctx = my.createCanvasContext('canvas') ctx.font = 'italic bold 50px cursive' const { width } = ctx.measureText('hello world') console.log(width) ``` #### 入?yún)?Object 類型,屬性如下: | 屬性 ...

http://www.o2fo.com/aliminiapp/aliminiapp-96ie3bvb.html

4078.CanvasContext.moveTo

...ls/public/files/b5353462162097ed527e6bd21f3de5f6.gif) #### 示例代碼 ```javascript //.js const ctx = my.createCanvasContext('canvas') ctx.moveTo(10, 10) ctx.lineTo(100, 10) ctx.moveTo(10, 50) ctx.lineTo(100, 50) ctx.stroke() ctx.draw() ``` 顯示效果如下圖所示: ![ctx.moveto.png](https://...

http://www.o2fo.com/aliminiapp/aliminiapp-ajkf3bvc.html

4079.CanvasContext.putImageData

...ls/public/files/b5353462162097ed527e6bd21f3de5f6.gif) #### 示例代碼 ```javascript // .js const data = new Uint8ClampedArray([255, 0, 0, 1]) const ctx = my.createCanvasContext('canvas') ctx.putImageData({ x: 0, y: 0, width: 1, height: 1, data: data, success(res) {} }) ``` #### 入?yún)?Object 類...

http://www.o2fo.com/aliminiapp/aliminiapp-ok7z3bvd.html

4080.CanvasContext.rect

...ls/public/files/b5353462162097ed527e6bd21f3de5f6.gif) #### 示例代碼 ```javascript //.js const ctx = my.createCanvasContext('canvas') ctx.rect(20, 20, 250, 80) ctx.setFillStyle('blue') ctx.fill() ctx.draw() ``` 顯示效果如下圖所示: ![ctx.rect.png](https://gw.alipayobjects.com/zos/skylar...

http://www.o2fo.com/aliminiapp/aliminiapp-wlvg3bvf.html

抱歉,暫時(shí)沒有相關(guān)的微課

w3cschool 建議您:

  • 檢查輸入的文字是否有誤

抱歉,暫時(shí)沒有相關(guān)的視頻課程

w3cschool 建議您:

  • 檢查輸入的文字是否有誤

抱歉,暫時(shí)沒有相關(guān)的教程

w3cschool 建議您:

  • 檢查輸入的文字是否有誤

4071.CanvasContext.createLinearGradient

...ls/public/files/b5353462162097ed527e6bd21f3de5f6.gif) #### 示例代碼 ```javascript //.js const ctx = my.createCanvasContext('canvas') const grd = ctx.createLinearGradient(10, 10, 150, 10) grd.addColorStop(0, 'yellow') grd.addColorStop(1, 'blue') ctx.setFillStyle(grd) ctx.fillRect(20, 20, 250, 180...

http://www.o2fo.com/aliminiapp/aliminiapp-pjyu3bv3.html

4072.CanvasContext.drawImage

...ls/public/files/b5353462162097ed527e6bd21f3de5f6.gif) #### 示例代碼 ```javascript //.js const ctx = my.createCanvasContext('canvas') ctx.drawImage('https://img.alicdn.com/tfs/TB1GvVMj2BNTKJjy0FdXXcPpVXa-520-280.jpg', 2, 2, 250, 80) ctx.draw() ``` 顯示效果如下圖所示: ![canvas.drawimage...

http://www.o2fo.com/aliminiapp/aliminiapp-w4r53bv5.html

4073.CanvasContext.fillRect

...ls/public/files/b5353462162097ed527e6bd21f3de5f6.gif) #### 示例代碼 ```javascript //.js const ctx = my.createCanvasContext('canvas') ctx.fillRect(20, 20, 250, 80) ctx.setFillStyle('blue') ctx.draw() ``` 顯示效果如下圖所示: ![canvas.fillrect.png](https://gw.alipayobjects.com/zos/skylar...

http://www.o2fo.com/aliminiapp/aliminiapp-gkam3bv7.html

4074.CanvasContext.fillText

...ls/public/files/b5353462162097ed527e6bd21f3de5f6.gif) #### 示例代碼 ```javascript //.js const ctx = my.createCanvasContext('canvas') ctx.setFontSize(42) ctx.fillText('Hello', 30, 30) ctx.fillText('alipay', 200, 200) ctx.draw() ``` 顯示效果如下圖所示: ![canvas.filltext.png](https://gw....

http://www.o2fo.com/aliminiapp/aliminiapp-lztr3bv8.html

4075.CanvasContext.getImageData

...ls/public/files/b5353462162097ed527e6bd21f3de5f6.gif) #### 示例代碼 ```javascript // .js const ctx = my.createCanvasContext('canvas') ctx.getImageData({ x: 0, y: 0, width: 100, height: 100, success(res) { console.log(res.width) // 100 console.log(res.height) // 100 console.log(res.data instanceo...

http://www.o2fo.com/aliminiapp/aliminiapp-ip1y3bv9.html

4076.CanvasContext.lineTo

...ls/public/files/b5353462162097ed527e6bd21f3de5f6.gif) #### 示例代碼 ```javascript //.js const ctx = my.createCanvasContext('canvas') ctx.moveTo(10, 10) ctx.rect(10, 10, 100, 50) ctx.lineTo(110, 60) ctx.stroke() ctx.draw() ``` 顯示效果如下圖所示: ![ctx.lineto.png](https://gw.alipayobje...

http://www.o2fo.com/aliminiapp/aliminiapp-1jdg3bva.html

4077.CanvasContext.measureText

...ls/public/files/b5353462162097ed527e6bd21f3de5f6.gif) #### 示例代碼 ```javascript //.js const ctx = my.createCanvasContext('canvas') ctx.font = 'italic bold 50px cursive' const { width } = ctx.measureText('hello world') console.log(width) ``` #### 入?yún)?Object 類型,屬性如下: | 屬性 ...

http://www.o2fo.com/aliminiapp/aliminiapp-96ie3bvb.html

4078.CanvasContext.moveTo

...ls/public/files/b5353462162097ed527e6bd21f3de5f6.gif) #### 示例代碼 ```javascript //.js const ctx = my.createCanvasContext('canvas') ctx.moveTo(10, 10) ctx.lineTo(100, 10) ctx.moveTo(10, 50) ctx.lineTo(100, 50) ctx.stroke() ctx.draw() ``` 顯示效果如下圖所示: ![ctx.moveto.png](https://...

http://www.o2fo.com/aliminiapp/aliminiapp-ajkf3bvc.html

4079.CanvasContext.putImageData

...ls/public/files/b5353462162097ed527e6bd21f3de5f6.gif) #### 示例代碼 ```javascript // .js const data = new Uint8ClampedArray([255, 0, 0, 1]) const ctx = my.createCanvasContext('canvas') ctx.putImageData({ x: 0, y: 0, width: 1, height: 1, data: data, success(res) {} }) ``` #### 入?yún)?Object 類...

http://www.o2fo.com/aliminiapp/aliminiapp-ok7z3bvd.html

4080.CanvasContext.rect

...ls/public/files/b5353462162097ed527e6bd21f3de5f6.gif) #### 示例代碼 ```javascript //.js const ctx = my.createCanvasContext('canvas') ctx.rect(20, 20, 250, 80) ctx.setFillStyle('blue') ctx.fill() ctx.draw() ``` 顯示效果如下圖所示: ![ctx.rect.png](https://gw.alipayobjects.com/zos/skylar...

http://www.o2fo.com/aliminiapp/aliminiapp-wlvg3bvf.html

抱歉,暫時(shí)沒有相關(guān)的文章

w3cschool 建議您:

  • 檢查輸入的文字是否有誤

熱門課程