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 createImageBitmap() factory method. ImageBitmap provides an asynchronous and resource efficient pathway to prepare textures for rendering in WebGL.

Properties

ImageBitmap.height Read only
Is an unsigned long representing the height, in CSS pixels, of the ImageData.
ImageBitmap.width Read only
Is an unsigned long representing the width, in CSS pixels, of the ImageData.

Methods

ImageBitmap.close()

Disposes of all graphical resources associated with an ImageBitmap.

Specifications

Specification Status Comment
HTML Living Standard
The definition of 'ImageBitmap' in that specification.
Living Standard  

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
Basic supportChrome Full support 50Edge No support NoFirefox Full support 42IE No support NoOpera Full support 37Safari No support NoWebView Android Full support 50Chrome Android Full support 50Edge Mobile Full support YesFirefox Android Full support 42Opera Android Full support 37Safari iOS ? Samsung Internet Android Full support 5.0
heightChrome Full support 50Edge ? Firefox Full support 42IE ? Opera Full support 37Safari ? WebView Android Full support 50Chrome Android Full support 50Edge Mobile ? Firefox Android Full support 42Opera Android Full support 37Safari iOS Full support YesSamsung Internet Android Full support Yes
widthChrome Full support 50Edge No support NoFirefox Full support 42IE ? Opera Full support 37Safari ? WebView Android Full support 50Chrome Android Full support 50Edge Mobile No support NoFirefox Android Full support 42Opera Android Full support 37Safari iOS Full support YesSamsung Internet Android Full support Yes
closeChrome Full support 52Edge ? Firefox Full support 46IE No support NoOpera Full support 37Safari No support NoWebView Android Full support 52Chrome Android Full support 52Edge Mobile ? Firefox Android Full support 46Opera Android Full support 37Safari iOS No support NoSamsung Internet Android Full support 6.0

Legend

Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown

See also

Document Tags and Contributors

Contributors to this page: fscholz, Halfman, jpmedley, Kaku, adria
Last updated by: fscholz,