Finding and moving Bitmaps after canvas scale

http://androidforums.com –
So I have a canvas that I draw a bitmap onto.. When the scalefactor of the canvas is 1.0f everything works perfectly how I want it to.. However the problem is when I change the scale of the canvas. Either zoomed in or out I run into problems with the coordinates and finding the bitmap so I can move it on touch..
I've tried dividing coordinates by the scalefactor.. multiplying.. I just can't work out the right calculation to get my desired result! Please help!
Here is my code
public void onDraw(Canvas canvas) {
// Log.v(TAG, "onDraw()");
clipBoun
(General)

Stories similar to Finding and moving Bitmaps after canvas scale

I am trying to draw a bitmap to a Canvas on my custom view. The bitmap needs to fill the entire screen. For larger bitmaps, I scale the bitmaps. The problem I am facing is that, while the bitmaps which are exactly the screen size and do not need to be scaled, fill exactly on the screen. But the bitmaps which are scaled, have a padding to the left on the canvas after they are drawn.