Class CanvasPattern
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
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.
[Value("CanvasPattern")]
public class CanvasPattern
- Inheritance
-
CanvasPattern
- Inherited Members
Remarks
It can be used as a CanvasRenderingContext2D.FillStyle or CanvasRenderingContext2D.StrokeStyle.
-CanvasRenderingContext2D.CreatePattern
-The {{HTMLElement("canvas")}} element and its associated interface, HTMLCanvasElement
Constructors
CanvasPattern()
public CanvasPattern()
Methods
SetTransform(DOMMatrix2DInit)
The CanvasPattern.setTransform() method uses a DOMMatrix object as the pattern's transformation matrix and invokes it on the pattern.
[Value("setTransform")]
public GlobalObject.Undefined SetTransform(DOMMatrix2DInit transform = null)
Parameters
transformDOMMatrix2DInit
Returns
Remarks
-The interface defining this method: CanvasPattern
-DOMMatrix