• Skip to main content
  • Skip to search
  • Skip to select language
MDN Web Docs
  • References
    • 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

  • Learn
    • Overview / MDN Learning Area

      Learn web development

    • MDN Learning Area

      Learn web development

    • HTML

      Learn to structure web content with HTML

    • CSS

      Learn to style content using CSS

    • JavaScript

      Learn to run scripts in the browser

    • Accessibility

      Learn to make the web accessible to all

  • Plus
    • Overview

      A customized MDN experience

    • AI Help

      Get real-time assistance and support

    • Updates

      All browser compatibility updates at a glance

    • Documentation

      Learn how to use MDN Plus

    • FAQ

      Frequently asked questions about MDN Plus

  • Curriculum New
  • Blog
    • Playground

      Write, test and share your code

    • HTTP Observatory

      Scan a website for free

    • AI Help

      Get real-time assistance and support

  • Log in
  • Sign up for free
  1. References
  2. Web APIs
  3. ImageBitmap
  4. width
    • Deutsch
    • 日本語
    • 中文 (简体)

In this article

  • Value
  • Specifications
  • Browser compatibility
  1. Canvas API
  2. ImageBitmap
  3. Instance properties
    1. height
    2. width
  4. Instance methods
    1. close()
  5. Related pages for Canvas API
    1. CanvasGradient
    2. CanvasPattern
    3. CanvasRenderingContext2D
    4. HTMLCanvasElement
    5. ImageBitmapRenderingContext
    6. ImageData
    7. OffscreenCanvas
    8. OffscreenCanvasRenderingContext2D
    9. Path2D
    10. TextMetrics
    11. Window.createImageBitmap()
    12. WorkerGlobalScope.createImageBitmap()

In this article

  • Value
  • Specifications
  • Browser compatibility

ImageBitmap: width property

Note: This feature is available in Web Workers.

The ImageBitmap.width read-only property returns the ImageBitmap object's width in CSS pixels.

Value

A number represents the ImageBitmap object's width in CSS pixels.

Specifications

Specification
HTML
# dom-imagebitmap-width-dev

Browser compatibility

BCD tables only load in the browser

Help improve MDN

Learn how to contribute.

This page was last modified on Oct 8, 2024 by MDN contributors.

View this page on GitHub • Report a problem with this content
ImageBitmap: width property by Mozilla Contributors is licensed under CC-BY-SA 2.5.