How to Cut out RectF From a Bitmap?
<p>I want to make a walking sprite animation. I have a one <code>bitmap</code> with all 31 sprite frames. I draw one frame on canvas <code>canvas.drawBitmap(bitmap, Rect src, RectF dst, paint)</code>. The problem is <code>Rect src</code> coordinates are <code>int</code> and when I divide <code>bitmap.getWidth()</code> by 31 to set a frame coordinates I get <code>float</code>. Is there a way to cut out <code>RectF</code> from a <code>bitmap</code>.     </p>

<p>I can cut out <code>Rect</code> and scale it, but I would prefer the first option. </p>
