CanvasPattern Class

A pattern of a canvas (https://html.spec.whatwg.org/multipage/canvas.html#canvaspattern): an image repeated in the directions of its repetition behavior, created by createPattern(). The image is a snapshot of the source when the pattern is created (later changes of a canvas source are not reflected).

public sealed class CanvasPattern

Methods

NameDescription
SetTransform(DomMatrix2DInit?)Sets the transformation matrix of the pattern (https://html.spec.whatwg.org/multipage/canvas.html#dom-canvaspattern-settransform): a matrix with a non-finite component is ignored.

SetTransform(DomMatrix2DInit?)

CanvasPattern.cs

Sets the transformation matrix of the pattern (https://html.spec.whatwg.org/multipage/canvas.html#dom-canvaspattern-settransform): a matrix with a non-finite component is ignored.

public void SetTransform(DomMatrix2DInit? transform = null)

Parameters

transform DomMatrix2DInit?

Exceptions

TypeErrorException
The members of the dictionary are inconsistent.

See also