Load and display the starfish image
Listing 2 is essentially the same as code that I explained in an earlier lesson.
Listing 2. Load and display the starfish image.
//Declare a pointer variable capable of pointing to a
// bitmap.
BITMAP *picA = NULL;
//Load an image file from the current directory.
picA = load_bitmap("starfish.pcx", NULL);
//Copy the image to the upper-left corner of the
// onscreen window.
blit(picA, screen, 0,0,0,0,324,330);
|
When Listing 2 finishes executing: