How do I made a deep copy a BitmapDrawable?
<p>I'm having trouble cloning a BitmapDrawable. I tried the answer in <a href="http://stackoverflow.com/questions/7979440/android-cloning-a-drawable-in-order-to-make-a-statelistdrawable-with-filters">this post</a> but it creates a "shallow" copy, and I need a "deep" copy so I can alter the pixels in the clone without affecting the original.</p>

<p>I also tried this: </p>

<pre><code>    Bitmap bitmap = bdOriginal.getBitmap();
    BitmapDrawable bdClone = new BitmapDrawable(getResources(), bitmap.copy(bitmap.getConfig(), true));
</code></pre>

<p>But it seems to create an immutable clone even though I set the mutable parameter in Bitmap.copy() to "true". That is, color filters don't appear to change the clone. Am I doing it wrong? (EDIT: I used the debugger to confirm bitmap.mIsMutable = true)</p>

<p>To summarize, I need a clone of a BitmapDrawable that can be altered with color filters without affecting the original. Any suggestions?</p>

<p>Thanks in advance...</p>
