HTML canvas ImageData height Property
Example
Alert the height of an ImageData object:
alert("Height of imgData is: " + imgData.height);
Try it Yourself »
Browser Support
The numbers in the table specify the first browser version that fully supports the property.
Property | |||||
---|---|---|---|---|---|
height | 4.0 | 9.0 | 3.6 | 4.0 | 10.1 |
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; |
---|
❮ Canvas Object