mozilla

Revision 29421 of ImageData

  • Revision slug: DOM/ImageData
  • Revision title: ImageData
  • Revision id: 29421
  • Created:
  • Creator: ziyunfei
  • Is current revision? No
  • Comment 22 words added

Revision Content

Revision Source

<p>Used with the {{ HTMLElement("canvas") }} element. Returned by <a href="/en/DOM/CanvasRenderingContext2D" title="en/DOM/CanvasRenderingContext2D">CanvasRenderingContext2D</a>'s <a href="/en/DOM/CanvasRenderingContext2D.createImageData" title="en/DOM/CanvasRenderingContext2D.createImageData">createImageData</a> and <a href="/en/DOM/CanvasRenderingContext2D.getImageData" title="en/DOM/CanvasRenderingContext2D.getImageData">getImageData</a> (and accepted as first argument in <a href="/en/DOM/CanvasRenderingContext2D.putImageData" title="en/DOM/CanvasRenderingContext2D.putImageData">putImageData</a>)</p>
<h2 id="Attributes">Attributes</h2>
<p>readonly unsigned long <strong>width</strong></p>
<p>readonly unsigned long <strong>height</strong></p>
<p>readonly <a href="/en/DOM/CanvasPixelArray" title="en/DOM/CanvasPixelArray">CanvasPixelArray</a> <strong>data</strong></p>
<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/HTML/Canvas/Pixel_manipulation_with_canvas" title="En/HTML/Canvas/Pixel manipulation with canvas">Pixel manipulation with canvas</a></li>
</ul>
{{ languages( {"zh-cn": "zh-cn/DOM/ImageData" } ) }}
Revert to this revision