Hello, guys I am trying to turn a bitmap image into 2D array .
This is my bitmap image:

I want to represent each white pixel inside the array with 1 and each black pixel with 0,but I need only pure white and pure black
And then redraw it , any ideas ?