Skip to main content
Module

x/commandis/mod.ts>dom.ImageBitmapRenderingContext

Official framework for Corddis lib ( for Deno only )
Latest
interface dom.ImageBitmapRenderingContext
import { type dom } from "https://deno.land/x/commandis@v0.6.5/mod.ts";
const { ImageBitmapRenderingContext } = dom;

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.