ImageBitmapRenderingContext
interface ImageBitmapRenderingContext {
canvas: HTMLCanvasElement | OffscreenCanvas;
transferFromImageBitmap(bitmap: null | ImageBitmap): void;
}
canvas: HTMLCanvasElement | OffscreenCanvas;
transferFromImageBitmap(bitmap: null | ImageBitmap): void;
}
Index
Properties
Methods
Methods
transfer From Image Bitmap
transferFromImageBitmap(bitmap: null | ImageBitmap): void
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
bitmap: null | ImageBitmap
MDN Reference