Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

CanvasImageData

interface CanvasImageData {
createImageData(
sw: number,
sh: number,
settings?: ImageDataSettings,
): ImageData;
createImageData(imagedata: ImageData): ImageData;
getImageData(
sx: number,
sy: number,
sw: number,
sh: number,
settings?: ImageDataSettings,
): 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;
}

§Methods

§
createImageData(
sw: number,
sh: number,
settings?: ImageDataSettings,
): ImageData
[src]
§
createImageData(imagedata: ImageData): ImageData
[src]
§
getImageData(
sx: number,
sy: number,
sw: number,
sh: number,
settings?: ImageDataSettings,
): ImageData
[src]
§
putImageData(
imagedata: ImageData,
dx: number,
dy: number,
): void
[src]
§
putImageData(
imagedata: ImageData,
dx: number,
dy: number,
dirtyX: number,
dirtyY: number,
dirtyWidth: number,
dirtyHeight: number,
): void
[src]