how to get position of bitmap inside canvas?
<p>i have a canvas and an image inside canvas.i need know the position of the bitmap inside the canvas.
in my case x and y are not static values.how to hide this image while touch on it?
what is the advantage of using SurfaceView over View.Here i am using view.</p>

<pre><code>public void onDraw(Canvas canvas) {
    Bitmap imgtable = BitmapFactory.decodeResource(getResources(),R.drawable.table_01);
    int x=50;
    int y=50;
    canvas.drawBitmap(imgtable, x, y, null);
    }
</code></pre>
