Module

x/canvas/mod.ts>ImageDataConstructor

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