how to identify whether X and y coordinates of touch lie with in range of bitmap image or not
<p>here is the code snippet to get bitmap and i am using Touch Event to get the coordinates</p>

<pre><code>`BitmapDrawable drawable = (BitmapDrawable) view.getDrawable();
                    Bitmap bitmap = drawable.getBitmap();
                    float x=event.getX();
                    float y=event.getY();`
</code></pre>

<p>Now i want to know whether these x and y lie in the bitmap region or not 
i found a condition but its in pseudo code Kindly guide me that how can i find this xOfBitmap and yOfBitmap </p>

<pre><code>    if (x &gt;= xOfYourBitmap &amp;&amp; x &lt; (xOfYourBitmap + yourBitmap.getWidth()) 
    &amp;&amp; y &gt;= yOfYourBitmap &amp;&amp; y &lt; (yOfYourBitmap + yourBitmap.getHeight()))
{
    // if this is true, you've started your click inside your bitmap
}
</code></pre>

<p>thanks in advance</p>
