Display in an onscreen window

An onscreen window is created of sufficient size to contain both images.

The two images are copied into the onscreen window with one image above the other as shown in Figure 1.

Pressing any key terminates the program.

Figure 1. Screen output for ImageDisplay01.