Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
interface ImageBitmapRenderingContext
import { type ImageBitmapRenderingContext } from "https://deno.land/x/yxz@0.17.0/typing/lib.dom.ts";

Properties

readonly
canvas: HTMLCanvasElement

Returns the canvas element that the context is bound to.

Methods

transferFromImageBitmap(bitmap: ImageBitmap | null): 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.