Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/evt/lib/types/index.ts>dom.CanvasImageData

💧EventEmitter's typesafe replacement
Go to Latest
interface dom.CanvasImageData
import { type dom } from "https://deno.land/x/evt@v2.4.16/lib/types/index.ts";
const { CanvasImageData } = dom;

Methods

createImageData(sw: number, sh: number): ImageData
createImageData(imagedata: ImageData): ImageData
getImageData(
sx: number,
sy: number,
sw: number,
sh: number,
): ImageData
putImageData(
imagedata: ImageData,
dx: number,
dy: number,
): void
putImageData(
imagedata: ImageData,
dx: number,
dy: number,
dirtyX: number,
dirtyY: number,
dirtyWidth: number,
dirtyHeight: number,
): void