CanvasPattern 接口表示描述一个模板(基于 image, canvas 或 video)的不透明对象,通过 CanvasRenderingContext2D.createPattern() 方法创建。
Object.prototype
Function.prototype
CanvasPattern
程序不能直接调用该构造函数,否则将会产生异常。
| 属性 | 说明 |
|---|---|
| - | - |
| 语法 | 说明 |
|---|---|
| - | - |
Object.prototype
CanvasPattern.prototype
| 属性 | 说明 |
|---|---|
| - | - |
| 语法 | 说明 |
|---|---|
| - | - |
Object.prototype
CanvasPattern.prototype
CanvasPattern 实例