HTML canvas ImageData width attribute
Examples
ImageData output width of the object:
alert("Width of imgData is: " + imgData.width);
try it"
Browser Support
Internet Explorer 9, Firefox, Opera, Chrome and Safari support ImageData width attributes.
Note: 8 and earlier versions of Internet Explorer do not support the <canvas> element.
Definition and Usage
width width ImageData property returns an object, in pixels.
Tip: See createImageData () , getImageData () and putImageData () method to get more knowledge about ImageData object.
JavaScript syntax
JavaScript syntax: | imgData .width; |
---|
HTML canvas Reference Manual