Image image = getImage(getDocumentBase() , getParameter("img"));
PixelGrabber pg = new PixelGrabber(image , 0 , 0 , -1 , -1 , true);

try { pg.grabPixels(); }
catch (InterruptedException e) { }
int px[] = (int[])pg.getPixels();

for(int index = 0 ; index < px.length ; index++)
if (px[index] == ((255 << 24) | (255 << 16) | (255 << 8) | 255))
px[index] = (255 << 24);

ImageProducer ip = new MemoryImageSource(
pg.getWidth() , pg.getHeight() , px , 0 , pg.getWidth());
this.img = createImage(ip);

これで画像の中の色が白いピクセルを黒に変換できる、らしいんですが
疑問1・for文のとこ、あれでなんで全部のピクセルをチェックできるの?
疑問2・255を左にシフトしてるけど24って・・・あふれてない?
どうかご教授ねがいます!!