ImageBitmapRenderingContext
interface ImageBitmapRenderingContext {
readonly canvas: HTMLCanvasElement;
transferFromImageBitmap(bitmap: ImageBitmap | null): void;
}var ImageBitmapRenderingContext: {
prototype: ImageBitmapRenderingContext;
new (): ImageBitmapRenderingContext;
};§Properties
§
readonly canvas: HTMLCanvasElement
[src]Returns the canvas element that the context is bound to.
§Methods
§
transferFromImageBitmap(bitmap: ImageBitmap | null): void
[src]Transfers the underlying bitmap data from imageBitmap to context, and the bitmap becomes the contents of the canvas element to which context is bound.