private int[] byteArrToIntArr(byte[] masks) {
int[] results = new int[masks.length];
for (int i = 0; i < masks.length; i++) {
if (masks[i] == 1) {
results[i] = Color.BLACK;
} else if (masks[i] == 2) {
results[i] = Color.BLUE;
} else if (masks[i] == 3) {
results[i] = Color.DKGRAY;
} else if (masks[i] == 4) {
results[i] = Color.YELLOW;
} else if (masks[i] == 5) {
results[i] = Color.LTGRAY;
} else if (masks[i] == 6) {
results[i] = Color.CYAN;
} else if (masks[i] == 7) {
results[i] = Color.RED;
} else if (masks[i] == 8) {
results[i] = Color.GRAY;
} else if (masks[i] == 9) {
results[i] = Color.MAGENTA;
} else if (masks[i] == 10) {
results[i] = Color.GREEN;
} else {
results[i] = Color.WHITE;
}
}
return results;
}