ImageBitmapRenderingContext

interface

interface ImageBitmapRenderingContext

A rendering context that displays the contents of an ImageBitmap on an OffscreenCanvas. Obtained from OffscreenCanvas.getContext with the "bitmaprenderer" context id.

variable

var ImageBitmapRenderingContext: { … }

The constructor object for ImageBitmapRenderingContext.

An ImageBitmapRenderingContext is obtained from OffscreenCanvas.getContext with the "bitmaprenderer" context id rather than constructed directly.

Properties

canvas

readonly canvas: OffscreenCanvas

The canvas that this context is bound to.

prototype

prototype: ImageBitmapRenderingContext

Methods

transferFromImageBitmap

transferFromImageBitmap(bitmap: ImageBitmap | null): undefined