dimanche 12 avril 2015

java how to get a boolean array from a black and white image

I have this image that I made in ms paint that is 106x17 and I want to turn the entire bitmap into a number. The image itself is stored as a .png and I need a way to read the image and store each pixel as a bit in a BigInteger. The way I need the image to be read is fairly specific and a little weird... The image needs to be read in lines from top to bottom going from right to left... so the upper right hand pixel should be the first bit in the number and the bottom left most pixel should be the last bit in the number.


Any help in this endevor would be much appreciated.


Aucun commentaire:

Enregistrer un commentaire