Bitmap bmp = new Bitmap(80, 80); for (int row = 0; row < 80; row++) { for (int col = 0; col < 80; col++) { // Parse the value at the current position int val = data[row, col]; // Set the pixel color based on the value if (val == 1) { bmp.SetPixel(col, row, Color.White); } else { bmp.SetPixel(col, row, Color.Black); } } } // Save the output image bmp.Save(OutputFileName);
data
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)