This is a C# Windows Application that converts an image into 8-bit greyscale and then into monochrome using a user-chosen or automatically calculated threshold value. The monochrome image can then be either saved as a BMP file or compressed using run-length encoding into a .cfax file that only this program can read to decompress. The threshold value is calculated using Otsu’s method.
When the image is converted to grayscale, there may be edge cases where it is converted into a blank image because of the luminance calculation used for each pixel’s colour. If this takes place, the greyscale value for each pixel will be calculated from the mean of its RGB values (brightness).