Render method (ILEADRasterView)

Visual Basic example

Visual C++ 5.0 example

Delphi 4 example

C++ Builder example

 

Syntax

short Render (long hDC, float fLeft, float fTop, float fWidth, float fHeight);

Overview

Refer to Printing an Image.

Remarks

Prints an image or displays the image in any device context.

You must specify the device context, and the position and dimensions of the printed image. The measurements use the scale mode of the device context.

The source rectangle, normally used for displaying an image, can also be used to limit which part of the bitmap is printed. For an illustration of how the source rectangle works, refer to Specifying Both the Source and Destination Rectangles. To specify the source rectangle, you can use the SetSrcRect method. (You can also use the source clipping rectangle, but that is usually unnecessary, and the code is more complex.)

See Also

Elements

PrintEnd method, PrintStart method

Topics

Raster Images: Printing Images