title: convert int color to int components
body: <p>I obtain pixel color by </p>
  
  <pre><code>int color = image.getRGB(x,y);
  </code></pre>
  
  <p>then i want to acquire red, green, blue components separately. How to do that? Maybe using some bitmask?</p>
  
  <pre><code>int green = color&amp;0x00ff00;
  </code></pre>
  
  <p>apparently not working... :(</p>