Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

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

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

Save the canvas image to a file encoded in specified format and quality.

Quality is a factor between 0 and 100, where 100 is the best quality. It represents different factors for different formats.

Parameters

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