ImageBitmapRenderingContext

This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The ImageBitmapRenderingContext interface is a canvas rendering context which only 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.

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

Currently drafted as a proposal in the OffscreenCanvas specification.

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support66 ?46 No ? No
transferFromImageBitmap66 ?

52

46 — 521

No ? No
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support6666 ?46 ? ? No
transferFromImageBitmap6666 ?

52

46 — 521

? ? No

1. Supported as transferImageBitmap.

See also

Document Tags and Contributors

 Contributors to this page: fscholz, chrisdavidmills, jpmedley
 Last updated by: fscholz,