Alert the width of an ImageData object:
Internet Explorer 9, Firefox, Opera, Chrome, and Safari support the ImageData width property.
Note: Internet Explorer 8 and earlier versions, do not support the <canvas> element.
The width property returns the width of an ImageData object, in pixels.
Tip: Look at createImageData(), getImageData(), and putImageData() to learn more about the ImageData object.
JavaScript syntax: | imgData.width; |
---|