HTML canvas ImageData width Property
Example
Output the width of the ImageData object:
alert("Width of imgData is: " + imgData.width);
Browser Support
The ImageData width property is supported in Internet Explorer 9, Firefox, Opera, Chrome, and Safari.
Note: Internet Explorer 8 and earlier versions do not support the <canvas> element.
Definition and Usage
The width property returns the width of the ImageData object, in pixels.
Tip: See also the createImageData(), getImageData(), and putImageData() methods for more information about ImageData objects.
JavaScript Syntax
| JavaScript syntax: | imgData.width; |
YouTip