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 used as image sources are the following:
Specifications
| Specification | Status | Comment |
|---|---|---|
| HTML Living Standard The definition of 'CanvasImageSource' in that specification. |
Living Standard | Initial definition. |
