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

x/shapes_plus/mod.ts>Shapes#toBuffer

Used canvas library to make shapes
Latest
method Shapes.prototype.toBuffer
import { Shapes } from "https://deno.land/x/shapes_plus@v0.0.5.1/mod.ts";

Parameters

optional
mimeType: "jpeg" | "png" | "webp"
optional
quality: number

Returns

Uint8Array