isPointInPath()
实例
输出 ImageData 对象的宽度:
alert("width of imgdata is:" + imgdata.width);
浏览器支持
![]() | ![]() | ![]() | ![]() | ![]() |
Internet Explorer 9、Firefox、Opera、Chrome 和 Safari 支持 ImageData width 属性。 | ||||
注意:Internet Explorer 8 及之前的版本不支持<canvas>元素。 |
定义和用法
width 属性返回 ImageData 对象的宽度,以像素计。
提示:请参阅createImageData()、getImageData()和putImageData()方法,以获得更多关于 ImageData 对象的知识。
JavaScript 语法
JavaScript 语法: | imgData.width; |
---|