title: Format of TYPE_INT_RGB and TYPE_INT_ARGB
body: <p>Could anyone explain for me how java stores color in TYPE_INT_RGB and TYPE_INT_ARGB ?<br>
  Do these lines of code work properly for calculating red, green and blue ?</p>
  
  <pre><code>int red= (RGB&gt;&gt;16)&amp;255;
  int green= (RGB&gt;&gt;8)&amp;255;
  int blue= (RGB)&amp;255;
  </code></pre>
  
  <p>And what about TYPE_INT_ARGB ? How can I get red, green and blue from TYPE_INT_ARGB?</p>