I have the following 4 integer values ββthat represent ARGB:
int value1 = 0xFF; int value2 = 68; int value3 = 68; int value4 = 68;
I would like to combine the values ββso that they represent the following:
int test = 0xFF686868;
My current approach is to use:
int test2 = 0xFF | value1 | value2 | value3;
But using this approach, the integer values ββof test1 and test2 do not match, what am I doing wrong? I am limited to J2ME.
S-k ' source share