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

x/dwm/ext/canvas.ts>Canvas#readPixels

Deno Window Manager: Cross-platform window creation and management
Go to Latest
method Canvas.prototype.readPixels
Re-export
import { Canvas } from "https://deno.land/x/dwm@0.3.4/ext/canvas.ts";

Read pixels from the canvas into a buffer.

Parameters

optional
x = [UNSUPPORTED]
optional
y = [UNSUPPORTED]
optional
width: number
optional
height: number
optional
into: Uint8Array
optional
colorSpace: ColorSpace = [UNSUPPORTED]