This topic has not yet been rated - Rate this topic

CanvasPattern object

[This documentation is preliminary and is subject to change.]

Provides an object that contains a pattern for a canvas fill style by using an image or portion of an image.

HTML Canvas 2D Context, Section 1Internet Explorer 9

Standards information

Remarks

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.

See also

createPattern

 

 

Build date: 2/14/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ