title: how to convert rgb color to int in java
body: <p><code>Paint.setColor</code> is expecting an integer. But what I have is a <code>Color</code> object. I don't see a <code>color.getIntValue()</code> in Java? So how do I do that? What I want is something like</p>
  
  <pre><code>public Something myMethod(Color rgb){
      myPaint.setColor(rgb.getIntValue());
      ...
  }
  </code></pre>
  
  <p>Correction: <code>android.graphics.Color;</code> I thought having <code>android</code> as one of the tags would be enough. But apparently not.</p>