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);
|