Tongka maker

Crop a picture to a square, compare color and two-level black-and-white output, and adjust dithering before exporting a BMP image for a XTEINK Tongka.