web api interface
ImageBitmapRenderingContext
Available in workers
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 getContext() or getContext()) is "bitmaprenderer".
This interface is available in both the window and the worker context.
Instance properties
canvasRead only- : A read-only reference to the
HTMLCanvasElementorOffscreenCanvasobject that is associated with the given context.
- : A read-only reference to the
Instance methods
transferFromImageBitmap()- : Displays the given
ImageBitmapin the canvas associated with this rendering context. Ownership of theImageBitmapis transferred to the canvas. This was previously namedtransferImageBitmap(), but was renamed in a spec change. The old name is being kept as an alias to avoid code breakage.
- : Displays the given
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.