I'm looking to load a RAW image file into an array.
The image is entirely black and white, and I can't find a way to cycle over each byte in the image and assign the array location (relative to the pixel of the image) the value 0 or 1 depending on whether that pixel is black or white.
Any help would be greatly appreciated.
The image is entirely black and white, and I can't find a way to cycle over each byte in the image and assign the array location (relative to the pixel of the image) the value 0 or 1 depending on whether that pixel is black or white.
Any help would be greatly appreciated.