Skip to main content
Module

x/skia_canvas/mod.ts>Canvas#save

Fast HTML Canvas API implementation for Deno using Google Skia
Latest
method Canvas.prototype.save
Re-export
import { Canvas } from "https://deno.land/x/skia_canvas@0.5.6/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]