Skip to main content
Module

x/canvas/mod.ts>ImageDataConstructor

Canvas API for Deno, ported from canvaskit-wasm (Skia).
Latest
interface ImageDataConstructor
import { type ImageDataConstructor } from "https://deno.land/x/canvas@v1.4.1/mod.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