This page is Ready to Use

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

CanvasPattern

Summary

An opaque object of the canvas API. See Notes.

Properties

No properties.

Methods

No methods.

Events

No events.

Notes

To use this object to create a pattern from a portion of an image, create a temporary clip canvas and use drawImage to extract the piece. Then, pass the tempoarary canvas to the createPattern method.

Related specifications

W3C HTML Canvas 2D Specification
W3C Candidate Recommendation

Attributions