Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
interface CanvasImageData
import { type CanvasImageData } from "https://deno.land/x/canvaseno@v1.0.2/mod.ts";

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