 <p>The following method should give you a string array of zero's and one's, representing the specified image:</p> <pre><code>private static string ConvertToString(Bitmap image) { StringBuilder result = new StringBuilder(); StringBuilder imageLine = new StringBuilder(); // Iterate each pixel from top to bottom for (int y = 0; y &lt; image.Height; y++) { // Iterate each pixel from left to right for (int x = 0; x &lt; image.Width; x++) { Color pixelColour = image.GetPixel(x, y); // Determine how "dark" the pixel via the Blue, Green, and Red values // (0x00 = dark, 0xFF = light) if (pixelColour.B &lt;= 0xC8 &amp;&amp; pixelColour.G &lt;= 0xC8 &amp;&amp; pixelColour.R &lt;= 0xC8) { imageLine.Append("1"); // Dark pixel } else { imageLine.Append("0"); // Light pixel } } // Add line of zero's and one's to end results result.AppendLine(imageLine.ToString()); imageLine.Clear(); } return result.ToString(); } </code></pre> <p>This is based on <a href="http://www.c-sharpcorner.com/UploadFile/hscream/ImagetoBinary02132007164649PM/ImagetoBinary.aspx" rel="nofollow">the link you provided</a>, but I've amended the code in a few places, like how the comparison of the pixel values was previously also based on the Alpha, and the string representations of the values.</p> <p>The following console application code should output the result, but I wouldn't recommend it for large images; maybe output to a text file instead?</p> <pre><code>using System; using System.Drawing; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { // Read image into memory var img = new Bitmap(@"C:\Temp\MickyMouse.png"); // Modify width of console buffer to keep each line of characters "on one line" Console.SetBufferSize(img.Width + 10, img.Height + 10); Console.WriteLine(ConvertToString(img)); Console.ReadLine(); } private static string ConvertToString(Bitmap image) { // Code from above } } } </code></pre> <p>You'll need to add a reference to <code>System.Drawing</code> to the project in order for it to compile.</p>