I am currently trying to write a script that can identify weather or not a pixel in a PNG file is black or white. I have gotten it to work but for some reason, instead of (0,0) starting from the top left of the PNG and going left to right, highest to lowest, it seems to be going from top right and going right to left, highest to lowest. any idea on why that could be?
all of those should return 0000, i think the pixels touching the edges are to blame.
i realized after looking through the code that i am cheking columns then rows but the rows are still inverted
The top left pixel has a black pixel to the Right and Down. So it should be: U D L R 0 1 0 1 = 5
except your code switched up and down so it’s U D L R 1 0 0 1 = 9