这是
实验性技术
检查
浏览器兼容性表格
要小心谨慎在生产中使用这之前。
ImageBitmapRenderingContext
interface is a canvas rendering context that provides the functionality to replace the canvas's contents with the given
ImageBitmap
. Its context id (the first argument to
HTMLCanvasElement.getContext()
or
OffscreenCanvas.getContext()
) is
"bitmaprenderer"
.
This interface is available in both the window and the worker 上下文。
ImageBitmapRenderingContext.transferFromImageBitmap()
显示给定
ImageBitmap
in the canvas associated with this rendering context. Ownership of the
ImageBitmap
is transferred to the canvas. This was previously named
transferImageBitmap()
, but was renamed in a spec change. The old name is being kept as an alias to avoid code breakage.
| 规范 | 状态 | 注释 |
|---|---|---|
|
HTML 实时标准
The definition of 'ImageBitmapRenderingContext' in that specification. |
实时标准 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
ImageBitmapRenderingContext
|
Chrome 66 | Edge ≤79 | Firefox 46 | IE 不支持 No | Opera Yes | Safari 不支持 No | WebView Android 66 | Chrome Android 66 | Firefox Android 46 | Opera Android Yes | Safari iOS ? | Samsung Internet Android 9.0 |
transferFromImageBitmap
|
Chrome 66 | Edge ≤79 |
Firefox
52
|
IE 不支持 No | Opera Yes | Safari 不支持 No | WebView Android 66 | Chrome Android 66 |
Firefox Android
52
|
Opera Android Yes | Safari iOS ? | Samsung Internet Android 9.0 |
完整支持
不支持
兼容性未知
实验。期望将来行为有所改变。
使用非标名称。