Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

ImageData.width

只读的 ImageData.width 属性,返回在图像数据对象中每一行像素的数量。

语法

imagedata.width

示例

var imagedata = new ImageData(100, 100);
imagedata.width // 100

规范描述

Specification Status Comment
WHATWG HTML Living Standard
ImageData.width
Living Standard  

浏览器兼容性

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support (Yes) 14 (14) 9.0 9.0 3.1
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support (Yes) 14.0 (14) (Yes) (Yes) (Yes)

参见

 

文档标签和贡献者

 此页面的贡献者: ice-i-snow
 最后编辑者: ice-i-snow,