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

x/shapes_plus/mod.ts>Canvas#save

Used canvas library to make shapes
Latest
method Canvas.prototype.save
Re-export
import { Canvas } from "https://deno.land/x/shapes_plus@v0.0.5.1/mod.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]