title: get rgb using shift register java
body: <p>i have this code from other place, but i still confuse about </p>
  
  <pre><code>  final byte[] pixels = ((DataBufferByte) image.getRaster().getDataBuffer()).getData();
    int[][] result = new int[height][width];
      int k = 0;
      final int pixelLength = 3;
      for (int pixel = 0, row = 0, col = 0; pixel &lt; pixels.length; pixel += pixelLength)           {
         int argb = 0;
         int blue= (((int) pixels[pixel] &amp; 0xff));
         argb = argb + blue;
         int green = (((int) pixels[pixel + 1] &amp; 0xff) &lt;&lt; 8);
         argb = argb + green;  // green)
         int red = (((int) pixels[pixel + 2] &amp; 0xff) &lt;&lt; 16);
         argb = argb + red; 
         result[row][col] = argb;
         k++;
         col++;
         if (col == width) {
             col = 0;
             row++;
         }
  
       }
  </code></pre>
  
  <p>when i print red, green ,blue why it not print the rgb value ?
  can someone explain to me ? what meaning of pixels[pixel] &amp; 0xff ?
  thx alot before :D</p>