Using the Printing Functions

This section contains examples that demonstrate how to print text and graphics. The code was taken from an application that allows a user to open and display a 16-color bitmapped image that is stored as a .BMP file.

In addition to displaying the bitmapped image, the application allows the user to configure the printer and then print the image and a string of text specifying the location of the file that contained the image. The application prints the text at the top of the page and the image in the center of the page.