Interface ImageBitmapRenderingContext
interface ImageBitmapRenderingContext {
canvas: HTMLCanvasElement | OffscreenCanvas;
transferFromImageBitmap(bitmap: ImageBitmap | null): void;
}
canvas: HTMLCanvasElement | OffscreenCanvas;
transferFromImageBitmap(bitmap: ImageBitmap | null): void;
}
Index
Properties
Methods
Properties
Readonlycanvas
The ImageBitmapRenderingContext.canvas property, part of the Canvas API, is a read-only reference to the A HTMLCanvasElement or OffscreenCanvas object.
Methods
transferFromImageBitmap
The
ImageBitmapRenderingContext.transferFromImageBitmap()method displays the given ImageBitmap in the canvas associated with this rendering context.Parameters
- bitmap: ImageBitmap | null
Returns void
The
ImageBitmapRenderingContextinterface is a canvas rendering context that provides the functionality to replace the canvas's contents with the given ImageBitmap.MDN Reference