How can I extract ARGB from a Color and convert them to byte components?
<p>I'm working in Java/Android and I want to take the <code>0xFFFFFFFF</code> int color and break it into 4 bytes for red, green, blue and alpha. I know <code>Color</code> has methods for extracting specific color values, but it gives them as an <code>int</code>. I've gone through the SDK and found that the <code>Color.red(color)</code> method is the same as saying <code>(color &gt;&gt; 16) &amp; 0xFF</code>, honestly I have no idea what this means but I think I can use this in some way.</p>

<p>I've tried doing</p>

<pre><code>byte red = (byte)Color.red(color);
</code></pre>

<p>but this doesn't seem to work. The whole point is so I can feed in the values into OpenGL with the method</p>

<pre><code>glColorPointer(4, GL_UNSIGNED_BYTE, 4, myColors);
</code></pre>

<p>myColors being a byte[].</p>

<p>Any help/tips/points would be greatly appreciated.</p>
