HTML canvas ImageData height Property

HTML Canvas Reference : Alert the height of an ImageData object

Browser Support

The numbers in the table specify the first browser version that fully supports the property.

Property
height Yes 9.0 Yes Yes Yes

Definition and Usage

The property returns the height of an ImageData object, in pixels.

Tip: Look at createImageData(), getImageData(), and putImageData() to learn more about the ImageData object.

JavaScript Syntax

JavaScript syntax: imgData.height;

❮ HTML Canvas Reference