mirror of
https://github.com/NaitLee/Cat-Printer.git
synced 2025-05-16 15:20:12 -07:00
Test unknown devices (scan everything) Rework of Web FE Event & Dispatch Fix major performance problem Better image processing algorithm New Halftone-like dither algo., namingly "Pattern" Some fixes to CSS Fix potential misc problems by manual testing
10 lines
726 B
TypeScript
10 lines
726 B
TypeScript
export declare function monoGrayscale(rgba: Uint32Array, brightness: i32, alpha_as_white: bool): Uint8ClampedArray;
|
|
/** Note: returns a `Uint32Array` */
|
|
export declare function monoToRgba(mono: Uint8ClampedArray): Uint32Array;
|
|
export declare function monoDirect(mono: Uint8ClampedArray, w: i32, h: i32): Uint8ClampedArray;
|
|
export declare function monoSteinberg(mono: Uint8ClampedArray, w: i32, h: i32): Uint8ClampedArray;
|
|
export declare function monoHalftone(mono: Uint8ClampedArray, w: i32, h: i32): Uint8ClampedArray;
|
|
export declare function monoToPbm(data: Uint8ClampedArray): Uint8ClampedArray;
|
|
/** Note: takes & gives `Uint32Array` */
|
|
export declare function rotateRgba(before: Uint32Array, w: i32, h: i32): Uint32Array;
|