title: Is there a way to convert an image into a multidimensional array of 0's and 1's
body: <p>I want to convert an image into a multidimensional array with 0's and 1's. 
  The image would be:</p>
  
  <p><img src="https://i.stack.imgur.com/ws3is.png" alt="enter image description here"></p>
  
  <p>I wan't to store this image into an array with 'black' being stored as 1 and 'white' being stored as 0 in the array. The array would be of 8 rows and 6 columns:</p>
  
  <pre><code>int[,] imgArray = new int[8,6];
  </code></pre>
  
  <p>Is there a way to achieve this in C#?</p>