Printing an Image

Use the following method to print an image in any device context:

Render method

The RenderCenter property lets you center an image, horizontally, vertically, or both, when printing.

image\sqrblit.gif To center the image horizontally, set the RenderCenter property to TRUE, then call the Render method with the iLeft parameter set to 0.

image\sqrblit.gif To center the image vertically, set the RenderCenter property to TRUE, then call the Render method with the iTop parameter set to 0.

image\sqrblit.gif To center an image both horizontally and vertically when printing, set the RenderCenter property to TRUE, then call the Render method with both iLeft and iTop set to 0.