title: How to prepare an array for setPixels?
body: <p>Documentation says:</p>
  
  <blockquote>
  <pre><code>public void setPixel(int x,int y,int[] iArray)
  </code></pre>
  </blockquote>
  
  <p>If I'm making a buffered image of a type:</p>
  
  <blockquote>
  <pre><code>BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
  </code></pre>
  </blockquote>
  
  <p>What would be the mapping of those 4 bytes an INT array? I've tried every combination like <code>0xff0000</code>, <code>0x00ff0000</code>, etc, and can't get any colors.</p>
  
  <p>Is there a mapping chart anywhere for all other types, like <code>INT_ARGB</code>, <code>BYTE_BINARY</code>, etc...?</p>