@qr-platform/qr-code.js
Version:
QRCode.js is a professional JavaScript/TypeScript library for creating customized QR codes, offering a blend of simplicity and sophistication. With versatile styling options—dot shapes, colors, gradients, embedded images, borders, and text—it enables you
10 lines (9 loc) • 469 B
TypeScript
/**
* Save an RGBA or grayscale buffer as a PNG using image-js.
* @param buffer - Buffer or Uint8Array of pixel data (RGBA or grayscale)
* @param width - Image width
* @param height - Image height
* @param filename - Output PNG filename
* @param isGray - If true, buffer is grayscale; otherwise, RGBA
*/
export declare function saveDebugImageImageJs(buffer: Buffer | Uint8Array, width: number, height: number, filename: string, isGray?: boolean): Promise<void>;