CanvasPattern
CanvasPattern
接口表示描述一个模板(基于 image、canvas 或 video)的不透明对象,通过 CanvasRenderingContext2D.createPattern()
方法创建。
属性
非透明对象,没有暴露的属性。
方法
没有继承来的方法。
CanvasPattern.setTransform()
-
应用
DOMMatrix
对模板做线性变换
规范
Specification |
---|
HTML Standard # canvaspattern |
浏览器兼容性
BCD tables only load in the browser
参见
CanvasRenderingContext2D.createPattern()
<canvas>
元素及和 canvas 相关接口HTMLCanvasElement