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

属性

Returns the canvas element that the context is bound to.

方法

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

    参数

    返回 void