W3cubDocs

/DOM

CanvasImageSource

CanvasImageSource provides a mechanism for other interfaces to be used as image sources for some methods of the CanvasDrawImage and CanvasFillStrokeStyles interfaces. It’s just an internal helper type to simplify the specification. It’s not an interface and there are no objects implementing it.

The interfaces that it allows to be use as image sources are the following:

Specifications

Specification Status Comment
HTML Living Standard
The definition of 'CanvasImageSource' in that specification.
Living Standard Initial definition.

© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/CanvasImageSource