Sukarelawan kami masih belum menterjemah artikel ini ke Melayu lagi. Sertai kami dan bantu melaksanakannya!
Anda juga boleh membaca artikel ini di English (US).
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.
Properties
Representing an opaque object, there is no exposed property.
Methods
There is no inherited method.
CanvasPattern.setTransform()- Applies an
SVGMatrixrepresenting a linear transform to the pattern.
Specifications
| Specification | Status | Comment |
|---|---|---|
| WHATWG HTML Living Standard The definition of 'CanvasPattern' in that specification. |
Living Standard | Added setTransform() method in v5. |
Browser compatibility
| Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
|---|---|---|---|---|---|
| Basic support | 4.0 | 3.6 (1.9.2) | 9.0 | 9.0 | 3.1 |
setTransform() |
No support | 33 (33) | ? | No support | ? |
| Feature | Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
|---|---|---|---|---|---|
| Basic support | 2.1 | 1.0 (1.9.2) | ? | 10.0 | 3.2 |
setTransform() |
? | 33.0 (33) | ? | ? | ? |
See also
CanvasRenderingContext2D.createPattern()- The
<canvas>element and its associated interface,HTMLCanvasElement