The JavaDoc for PixelGrabber contains a way to convert between int and the actual RGB values:
int alpha = (pixel >> 24) & 0xff;
int red = (pixel >> 16) & 0xff;
int green = (pixel >> 8) & 0xff;
int blue = (pixel ) & 0xff;
Alternatively you can use the ColorModel as returned by getColorModel()
.