Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 464911 of CanvasImageSource

  • Revision slug: Web/API/CanvasImageSource
  • Revision title: CanvasImageSource
  • Revision id: 464911
  • Created:
  • Creator: teoli
  • Is current revision? No
  • Comment

Revision Content

The CanvasImageSource type represents any object of one of the following type: {{domxref("HTMLImageElement")}}, {{domxref("HTMLVideoElement")}}, {{domxref("HTMLCanvasElement")}}, {{domxref("CanvasRenderingContext2D")}}, or {{domxref("ImageBitmap")}}.

It doesn't add any property or method to them, it just act as a generic name where any object implementing one of these interfaces can be used, like the {{domxref("HTMLCanvasElement.createPattern()")}} or {{domxref("HTMLCanvasElement.drawImage()")}} methods.

Revision Source

<p>The <strong><code>CanvasImageSource</code></strong> type represents any object of one of the following type: {{domxref("HTMLImageElement")}}, {{domxref("HTMLVideoElement")}}, {{domxref("HTMLCanvasElement")}}, {{domxref("CanvasRenderingContext2D")}}, or {{domxref("ImageBitmap")}}.</p>
<p>It doesn't add any property or method to them, it just act as a generic name where any object implementing one of these interfaces can be used, like the {{domxref("HTMLCanvasElement.createPattern()")}} or {{domxref("HTMLCanvasElement.drawImage()")}} methods.</p>
Revert to this revision