Crop bitmap while drawing on canvas
<p>I read about simple method to cropping bitmaps - it works fine, when crop is not so frequent:</p>

<pre><code>Bitmap.createBitmap(src, x, y, width, height);
</code></pre>

<p>But in my app I'm drawing bitmaps on the canvas and I want it to not getting of bounds</p>

<p><img src="http://i.stack.imgur.com/tpjAW.png" alt="Description"></p>

<p>User can move and zoom bitmap. Now I'm using the method that I described above in <code>onTouchEvent</code>, but:</p>

<ol>
<li><p>It's not smooth enough (however it works)</p></li>
<li><p>It recreates a new bitmap at each "move" event. I think it's extremely ineffective. There is no memory consumption, since I recycle previous bitmaps, but it's still looks bad.</p></li>
</ol>

<p><strong>My question is:</strong> is there any way to crop bitmap more efficiently, while drawing on canvas?</p>
