I have 500x500 bitmaps containing no more than 16 colors that I need to convert to a text file where each color is represented by a character.
I then need to reduce the size of the text file by finding patterns in each line.
I have the characters right now in a 2D array.
For example:
AHAHAH = 3(AH)
HAHAHA = 3(HA)
AAAHHH = 3(A)3(H)
ABYZTT = ABYZ2(T)
AHAHAB = 2(AH)AB
I don't think I can use regular expressions because there are so many possible combinations.
I am not even sure where to begin.