Basically, Canvas supported by Bitmap , so when you draw something using the canvas, the canvas will draw in the Bitmap with which it was created. So, when you draw these two bitmaps using a canvas, it is going to combine the bitmaps together and the result will be saved in drawingBitmap as it supports the canvas.
The analogy is similar to the correct one, although it is probably confusing (and overly simplifying, which I also do above) - as I mentioned in the commentary, you can think of Canvas as a pen, Paint as a configuration of this pen (for example, replaceable ink or something- something else that you can fit into the idea of a custom pen) and Bitmap as the paper you draw on. The analogy becomes confusing if you pay too much attention to the accepted meaning of words.
source share