title: how to decompose integer array to a byte array (pixel codings)
body: <p>Hi sorry for being annoying by rephrasing my question but I am just on the point of discovering my answer.</p>
  
  <p>I have an array of <code>int</code> composed of RGB values, I need to decompose that <code>int</code> array into a byte array, but it should be in BGR order.</p>
  
  <p>The array of int composed of RGB values is being created like so:</p>
  
  <pre><code>pix[index++] = (255 &lt;&lt; 24) | (red &lt;&lt; 16) | blue;
  </code></pre>