Impossible: after calling drawBitmap contents of the bitmap are displayed on the canvas, but the canvas does not store any links to the original bitmap, it only saves the results of applying the contents of the bitmap on the canvas, There is no way to dynamically say that the bitmap you painted 1 out of 50, I I want you to do this 50th bitmap and automatically redraw every other bitmap to reflect this change.
So, you will need to order drawing operations before you begin.
source share