Latest web development tutorials

HTML canvas ImageData height property

HTML canvas Reference Manual HTML canvas Reference Manual

Examples

Output height ImageData object:

alert("Height of imgData is: " + imgData.height);

try it"

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Internet Explorer 9, Firefox, Opera, Chrome and Safari support ImageData height attributes.

Note: 8 and earlier versions of Internet Explorer do not support the <canvas> element.


Definition and Usage

height height ImageData property returns an object, in pixels.

Tip: See createImageData () , getImageData () and putImageData () method to get more knowledge about ImageData object.


JavaScript syntax

JavaScript syntax: imgData .height;


HTML canvas Reference Manual HTML canvas Reference Manual