title: Drawing "drawables" to a canvas in dp units
body: <p>I'm trying to figure out if there is a way to draw bitmaps to the canvas in dp units instead of pixels. For example: the following code scales the drawable to 100 * 100 px. How can I instead change it do 100 * 100 dp? </p>
  
  <pre><code>int lengthPos = 10;
  int heightPos = 10
  mImage.setBounds(lengthPos, heightPos, (lengthPos + 100), (heightPos + 100));
  mImage.draw(c);
  </code></pre>
  
  <p>Additionally, I'm not sure what the units of measurement for screen clicks are, but they don't match the pixels on the screen, making it hard to detect when a drawable has been selected (you kinda have to guess where to click to select a drawable. Can I also scale click coordinates to dp? doesn't seem like it would be too hard, especially since screen click coords are stored in a local variable for processing in my application. </p>
  
  <p>In other words, I need to match the scaling so that clicking coordinates 250, 250 selects the pixels drawn at 250, 250 on multiple screen densities. </p>