This is a nice program. It may also be useful if you could choose whether the data outputs a color as a 1 or a 0. (example: red black red is either 101 or 010.)
No Worries, I should be able to add that tonight.
I found a few few problems/bugs though:
I put red and green in a picture and the program switched the data (red is green, green is red.)
I haven't been able to replicate this fault - red comes up as red and green as green
I tried putting yellow into a picture and it did not do red or green.
I should have explained a little more as to how it works. The program simply checks the intensity of red, green and blue in each pixel. if it is greater than 127 (255 is the highest you can get per color) it will deem that color to be there and will set it to a 1, if it is less than 128, then the programs deems that color to be too dark and assigns it a 0. For your yellow color, there must have been a greater green component compared to red and that's why only green came through. I will modify the program so you can adjust the intensity level that it allows colors to pass through at. I will also give you an output image so you can see what the image would look like in your game.
I put orange in the picture and only updated MyDataGreen (so probably red.)
Same as above, there must not have been enough red in the color
Bugs or no bugs, this is still an awesome program! It'll make map making a whole lot easier for my game!.
Thanks for the feedback, I'll make these changes and then see how it works for you. Once you think it's all good - I'll release it out on the arduino forums etc...