THE WORLD'S LARGEST WEB DEVELOPER SITE

HTML canvas ImageData height Property

HTML canvas Reference HTML Canvas Reference

Example

Alert the height of an ImageData object:

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

Try it yourself »

Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

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

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


Definition and Usage

The height 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 HTML Canvas Reference

COLOR PICKER

colorpicker

SHARE THIS PAGE






Search w3schools.com:

Translate w3schools.com: