static public void Main(string[] args){
if (args.Length < 1){
System.Console.WriteLine("File name required");
}
else if (!System.IO.File.Exists(args[0])){
System.Console.WriteLine("File does not exist: "+args[0]);
}
else {
byte[] newbmp = BitmapConverter.To1bpp(args[0]);
System.Console.WriteLine(newbmp);
System.IO.File.WriteAllBytes("out.bmp",newbmp);
}
}
}