@opuu/cat-printer
Version:
SDK to interact with chinese non standard thermal printers (cat printers) over bluetooth
15 lines (14 loc) • 504 B
TypeScript
import { DitheringAlgorithm } from './index';
import { ImageOptions } from '../types';
/**
* Implements threshold dithering.
*/
export declare class ThresholdDithering implements DitheringAlgorithm {
/**
* Applies threshold dithering to the image data.
* @param imageData The ImageData object.
* @param options Image options, specifically the brightness threshold.
* @returns The dithered ImageData.
*/
dither(imageData: ImageData, options: ImageOptions): ImageData;
}