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

A constructor for making an ImageData that is compatible with the Canvas2D emulation code.

Methods

new(width: number, height: number): EmulatedImageData
new(
pixels: Uint8ClampedArray,
width: number,
height: number,
): EmulatedImageData