Can somebody explain me how canvas.drawBitmap method works. Here is my sample code:
Using java Syntax Highlighting
- Rect rect = new Rect(0, mY, 320, mY + 480);
- Rect rect2 = new Rect(0, 0, 320, 480);
- canvas.drawBitmap(mBackgroundImage, rect, rect2, null);
- canvas.save();
- mY++;
Parsed in 0.029 seconds, using GeSHi 1.0.8.4
mBackgorundImage is originally 320*960 pixels png but when i call this code second time it becomes 320*455 - WHY this resize happens?!
What i actually wanna do is to draw only small part of the whole map depending on user actions.

