CanvasPattern - Web APIs 编辑
The CanvasPattern
interface represents an opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern()
method.
It can be used as a fillStyle
or strokeStyle
.
Properties
As an opaque object, this has no exposed property.
Methods
There are no inherited method.
CanvasPattern.setTransform()
- Applies an
SVGMatrix
orDOMMatrix
representing a linear transform to the pattern.
Specifications
Specification | Status | Comment |
---|---|---|
HTML Living Standard The definition of 'CanvasPattern' in that specification. | Living Standard | Added setTransform() method in v5. |
Browser compatibility
BCD tables only load in the browser
See also
CanvasRenderingContext2D.createPattern()
- The
<canvas>
element and its associated interface,HTMLCanvasElement
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论