Copy the image to the screen

Listing 2 calls the blit function:

The blit function copies a rectangular area from a source bitmap to a destination bitmap very quickly.