I am not an expert, but it seems to me that you are getting a hex value. Perhaps you need something more comprehensible, like the meaning of each RGB layer.
RGB, - :
private short[][] red;
private short[][] green;
private short[][] blue;
private void unpackPixel(int pixel, int row, int col) {
red[row][col] = (short) ((pixel >> 16) & 0xFF);
green[row][col] = (short) ((pixel >> 8) & 0xFF);
blue[row][col] = (short) ((pixel >> 0) & 0xFF);
}
.
private int packPixel(int red, int green, int blue) {
return (red << 16) | (green << 8) | blue;
}
, , .