Baseline Widely available
This feature is well established and works across many devices and browser versions. Itâs been available across browsers since â¨September 2021â©.
Note: This feature is available in Web Workers.
The ImageBitmap
interface represents a bitmap image which can be drawn to a <canvas>
without undue latency. It can be created from a variety of source objects using the Window.createImageBitmap()
or WorkerGlobalScope.createImageBitmap()
factory method. ImageBitmap
provides an asynchronous and resource efficient pathway to prepare textures for rendering in WebGL.
ImageBitmap
is a transferable object.
ImageBitmap.height
Read only
An unsigned long
representing the height, in CSS pixels, of the ImageBitmap
.
ImageBitmap.width
Read only
An unsigned long
representing the width, in CSS pixels, of the ImageBitmap
.
ImageBitmap.close()
Disposes of all graphical resources associated with an ImageBitmap
.
Loadingâ¦
See alsoWindow.createImageBitmap
WorkerGlobalScope.createImageBitmap
CanvasRenderingContext2D.drawImage()
WebGLRenderingContext.texImage2D()
OffscreenCanvas.transferToImageBitmap()
Yes No
Learn how to contributeThis page was last modified on â¨May 16, 2025â© 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.5