Interface ImageBitmapRenderingContext

interface ImageBitmapRenderingContext {
    canvas: OffscreenCanvas | HTMLCanvasElement;
    transferFromImageBitmap(bitmap): 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.

    MDN Reference

    Parameters

    Returns void