Overview / Web Technology
Web technology reference for developers
HTML
Structure of content on the web
CSS
Code used to describe document style
JavaScript
General-purpose scripting language
HTTP
Protocol for transmitting web resources
Web APIs
Interfaces for building web applications
Web Extensions
Developing extensions for web browsers
Accessibility
Build web projects usable for all
Web Technology
Web technology reference for developers
Filter sidebar
In this articleImageData
colorSpace
data
height
pixelFormat
Experimentalwidth
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.
Note: This feature is available in Web Workers.
The readonly ImageData.width
property returns the number of pixels per row in the ImageData
object.
A number.
ExamplesThis example creates an ImageData
object that is 200 pixels wide and 100 pixels tall. Thus, the width
property is 200
.
js
let imageData = new ImageData(200, 100);
console.log(imageData.width); // 200
Specifications Specification HTML .
This page was last modified on Apr 22, 2024 by MDN contributors.
View this page on GitHubâ¢
Report a problem with this contentRetroSearch 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