W3cubDocs

/Web APIs

ImageBitmapRenderingContext

The 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 context.

Instance methods

ImageBitmapRenderingContext.transferFromImageBitmap()

Displays the given 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.

Specifications

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
ImageBitmapRenderingContext 66 79 46 No 53 11.1 66 66 46 47 11.3 9.0
canvas 66 79 97 No 53 11.1 66 66 97 47 11.3 9.0
transferFromImageBitmap 66 79 5046–52 No 53 11.1 66 66 5046–52 47 11.3 9.0

See also

© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmapRenderingContext