Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/canvas/mod.ts>CanvasImageData

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