mozilla

Revision 335727 of ImageData

  • Revision slug: DOM/ImageData
  • Revision title: ImageData
  • Revision id: 335727
  • Created:
  • Creator: ethertank
  • Is current revision? No
  • Comment +-Tags, +ReviewFlg, MarkUp, CleanUp.

Revision Content

Revision Source

<h2 id="Summary">Summary</h2>

<p>Used with the {{HTMLElement("canvas")}} element. Returned by <a href="/en-US/docs/DOM/CanvasRenderingContext2D" title="DOM/CanvasRenderingContext2D">CanvasRenderingContext2D</a>'s <a href="/en-US/docs/DOM/CanvasRenderingContext2D.createImageData" title="DOM/CanvasRenderingContext2D.createImageData">createImageData</a> and <a href="/en-US/docs/DOM/CanvasRenderingContext2D.getImageData" title="DOM/CanvasRenderingContext2D.getImageData">getImageData</a> (and accepted as first argument in <a href="/en-US/docs/DOM/CanvasRenderingContext2D.putImageData" title="DOM/CanvasRenderingContext2D.putImageData">putImageData</a>)</p>

<h2 id="Attributes">Attributes</h2>
<dl>

<dt><code>width</code></dt>
<dd>readonly unsigned long</dd>

<dt><code>height</code></dt>
<dd>readonly unsigned long</dd>

<dt><code>data</code></dt>
<dd>readonly <a href="/en-US/docs/DOM/CanvasPixelArray" title="DOM/CanvasPixelArray">CanvasPixelArray</a> data</dd>

</dl>

<h2 id="Specification">Specification</h2>
<ul>
  <li><a class="external" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#imagedata" rel="freelink">http://www.whatwg.org/specs/web-apps...html#imagedata</a></li>
</ul>

<h2 id="See_also">See also</h2>
<ul>
  <li><a href="/en-US/docs/HTML/Canvas/Pixel_manipulation_with_canvas" title="HTML/Canvas/Pixel manipulation with canvas">Pixel manipulation with canvas</a></li>
</ul>
Revert to this revision