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 used as image sources are the following:  HTMLImageElement SVGImageElement HTMLVideoElement HTMLCanvasElement ImageBitmap OffscreenCanvas 

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


Found a problem with this page?

Edit on GitHub
Source on GitHub
Report a problem with this content on GitHub
Want to fix the problem yourself? See our Contribution guide.


Last modified: Feb 18, 2022, by MDN contributors


    
{'path': 'public/docs/dom/canvasimagesource.html', 'source': 'DevDocs.IO'}