The readonly ImageData.height
property returns the number of rows in the ImageData
object.
The readonly ImageData.height
property returns the number of rows in the ImageData
object.
A number.
This example creates an ImageData
object that is 200 pixels wide and 100 pixels tall. Thus, the height
property is 100
.
js
let imageData = new ImageData(200, 100); console.log(imageData.height); // 100
Specification |
---|
HTML Standard # dom-imagedata-height-dev |
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
height |
1 | 12 | 3.5 | 9 | 9 | 3.1 | ≤37 | 18 | 4 | 10.1 | 2 | 1.0 |
© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/ImageData/height