interface ImageBitmapRenderingContext {
    canvas: HTMLCanvasElement | OffscreenCanvas;
    transferFromImageBitmap(bitmap: null | ImageBitmap): void;
}

Properties

Returns the canvas element that the context is bound to.

Methods

  • Transfers the underlying bitmap data from imageBitmap to context, and the bitmap becomes the contents of the canvas element to which context is bound.

    Parameters

    Returns void