title: Draw a rectangle on canvas with center at touch point
body: <p>I'm trying to draw a rectangle on the canvas with the center at the touch point. I'm using the following code:</p>
  
  <pre><code>canvas.drawRect((point.x + 15), (point.y + 15),(point.x + 15),(point.y + 15), paint);
  </code></pre>
  
  <p>But it doesn't work.</p>
  
  <p>But when I use,</p>
  
  <pre><code>canvas.drawRect(point.x , point.y ,(point.x + 30),(point.y + 30), paint);
  </code></pre>
  
  <p>amazingly,it works. But the only harm is it is not centered at the touch coordinates.The top left of the rectangle coincides with the touch coordinates.
  Where am I going wrong?</p>