Developers can print images by using a small series of functions. First, the PrepareToPrint method must be called to intitialize the print settings. Next, for each image that should be printed, the developer must load the image and then call the PrintDIBPage method. After calling the PrintDIBPage method, the developer must call the DropDIB method for the image if they no longer need the image. Once all of the images have been printed, the developer must call the EndPrint method. The psuedocode below demonstrates how several images can be printed:
PrepareToPrint
While some condition
LoadImage
PrintDIBPage
DropDIB
End While
EndPrint