title: How to get the image bitmap of an ImageButton?
body: <p>I have no problem doing:</p>
  
  <pre><code>currentImageButton.setImageBitmap(bitmap);
  </code></pre>
  
  <p>However, I have yet to be able to get the image bitmap back. I am trying to get the image bitmap BACK from the ImageButton and use it to set the background of my canvas. </p>
  
  <pre><code>currentImageButton.buildDrawingCache();
  Drawable myDrawable = currentImageButton.getDrawable();
  Bitmap anImage      = ((BitmapDrawable) myDrawable).getBitmap();
  
  canvas.drawBitmap(getResizedBitmap(anImage, 1000, 1000));
  </code></pre>
  
  <p>None of this seems to work though. I've even tried using <code>myDrawable</code> to set change the background of my view, just incase it was something wrong with canvas but that doesn't work either.</p>