@mmote/niimblue-node
Version:
Headless clients for niimbluelib. Command line interface, simple REST server are also included.
7 lines (6 loc) • 389 B
TypeScript
import { EncodedImage, PrintDirection } from "@mmote/niimbluelib";
import sharp from "sharp";
export declare class ImageEncoder {
static encodeImage(src: sharp.Sharp, printDirection?: PrintDirection): Promise<EncodedImage>;
static isPixelNonWhite(buf: Buffer<ArrayBufferLike>, imgWidth: number, imgHeight: number, x: number, y: number, printDirection?: PrintDirection): boolean;
}