Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

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

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

Encode the canvas image into a buffer in specified format and quality.

Parameters

optional
format: ImageFormat = [UNSUPPORTED]
optional
quality = [UNSUPPORTED]