I am working on a character recognizer app and trying to convert a canvas image to a 2d array of ints. The dimensions are 250x250 and is black and white. If the pixel is black, I want it to set the array value to 1. How can I determine the pixel color for each pixel to populate my array? (I am working with WPF and C#)
Thanks,
Joseph