What do you mean with to fit the canvas ?
When you load a bitmap onto a view with Gravity = Gravity.FILL the bitmap fills the view (streched or shrinked).
When you use a canvas to draw a bitmap you set a source rectangle and a destination rectangle if they are different the bitmap is streched or shrinked.