ImageBitmap

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.

特性

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

方法

ImageBitmap.close()

Disposes of all graphical resources associated with an ImageBitmap .

规范

规范 状态 Comment
HTML Living Standard
The definition of 'ImageBitmap' in that specification.
实时标准

浏览器兼容性

更新 GitHub 上的兼容性数据
Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
ImageBitmap Chrome 50 Edge 79 Firefox 42 IE No Opera 37 Safari No WebView Android 50 Chrome Android 50 Firefox Android 42 Opera Android 37 Safari iOS No Samsung Internet Android 5.0
close Chrome 52 Edge 79 Firefox 46 IE No Opera 37 Safari No WebView Android 52 Chrome Android 52 Firefox Android 46 Opera Android 37 Safari iOS No Samsung Internet Android 6.0
height Chrome 50 Edge 79 Firefox 42 IE No Opera 37 Safari No WebView Android 50 Chrome Android 50 Firefox Android 42 Opera Android 37 Safari iOS No Samsung Internet Android 5.0
width Chrome 50 Edge 79 Firefox 42 IE No Opera 37 Safari No WebView Android 50 Chrome Android 50 Firefox Android 42 Opera Android 37 Safari iOS No Samsung Internet Android 5.0

图例

完整支持
完整支持
不支持
不支持

另请参阅