Stretched bitmap in android
<p>I'm working on a piece of code where i have to write text and images on a bitmap. Unfortunately i don't know the number of text items to be added in bitmap. To begin i create a bitmap by this </p>

<pre><code>Bitmap bitMapBuffer = Bitmap.createBitmap(containerWidth,50, Bitmap.Config.ARGB_8888);
</code></pre>

<p>the problem is .. the above bitmap is fixed size.. so after a while whatever i write does not show up on bitmap. How can i make it work, i mean a kind of stretched bitmap type. I looked in <code>BitmapDrawable</code>, but i cannot pass a drawable to a canvas like this </p>

<pre><code>Canvas c1 = new Canvas(bitMapBuffer);
</code></pre>

<p>How can i handle this scenario?</p>
