Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/ogone/src/ogone.dom.d.ts>ImageBitmapRenderingContext

Advanced Web Composition for Future
Latest
interface ImageBitmapRenderingContext
import { type ImageBitmapRenderingContext } from "https://deno.land/x/ogone@revb3/src/ogone.dom.d.ts";

Properties

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.