mirror of
https://github.com/NaitLee/Cat-Printer.git
synced 2025-05-16 15:20:12 -07:00
16 lines
569 B
TypeScript
16 lines
569 B
TypeScript
|
|
declare interface ImagePrinter {
|
|
noticeElement: HTMLParagraphElement;
|
|
thresholdInput: HTMLInputElement;
|
|
fileSelection: HTMLInputElement;
|
|
dummyImage: HTMLImageElement;
|
|
imagePreview: HTMLCanvasElement;
|
|
previewButton: HTMLButtonElement;
|
|
printButton: HTMLButtonElement;
|
|
monoMethod: Function;
|
|
}
|
|
|
|
declare function imageDataColorToMonoSquare(data: ImageData, threshold: number): ImageData;
|
|
declare function imageDataColorToMonoDiamond(data: ImageData, threshold: number): ImageData;
|
|
declare function imageDataMonoToPBM(data: ImageData): Blob;
|