Android: Difference between canvas.drawBitmap and BitmapDrawable.draw?

Viewed 6767

When I want to draw a BitmapDrawable to a Canvas in Android, there are two possibilities that do the same and I don't know which one to prefer:

  1. Using canvas.drawBitmap() and extract the Bitmap from the drawable using getBitmap()

  2. Using drawable.draw(canvas), passing the canvas as an argument to the drawable.

I'm using the first option now, but it seems completely arbitrary as I can't see any difference.

Thanks for your answers

1 Answers
Related