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