A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://developer.mozilla.org/zh-CN/docs/Web/API/ImageData/width below:

ImageData.width - Web API | MDN

MDN Web Docs
  1. 面向开发者的 Web 技术
  2. Web API
  3. ImageData
  4. ImageData.width

此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。

Filter sidebar

在本文中
  1. Canvas API
  2. ImageData
  3. 构造函数
    1. ImageData()
  4. 实例属性
    1. colorSpace
    2. data
    3. height
    4. pixelFormat 实验性
    5. width
  5. Canvas API 的相关页面
    1. CanvasGradient
    2. CanvasPattern
    3. CanvasRenderingContext2D
    4. HTMLCanvasElement
    5. ImageBitmap
    6. ImageBitmapRenderingContext
    7. OffscreenCanvas
    8. OffscreenCanvasRenderingContext2D
    9. Path2D
    10. TextMetrics
    11. Window.createImageBitmap()
    12. WorkerGlobalScope.createImageBitmap()
  6. 指南
    1. 使用 canvas 处理视频
  7. 教程
    1. Canvas 教程
    2. Canvas 的基本用法
    3. 使用 canvas 来绘制图形
    4. 应用样式和色彩
    5. 绘制文本
    6. 使用图像
    7. 变形 Transformations
    8. 组合 Compositing
    9. 基本的动画
    10. 高级动画
    11. 像素操作
    12. canvas 的优化
    13. 终曲
在本文中 ImageData.width

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.

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

语法
imagedata.width
示例

js

var imagedata = new ImageData(100, 100);
imagedata.width; // 100
规范 Specification HTML
# dom-imagedata-width
浏览器兼容性 参见 Help improve MDN Was this page helpful to you? Learn how to contribute

.

This page was last modified on 2023年7月29日 by MDN contributors.

View this page on GitHub

•

Report a problem with this content

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4