Available in the LEADTOOLS Imaging toolkit. |
Render method (Main Control)
Visual Basic example
Visual C++ 4.0 example
Syntax short Render (OLE_HANDLE 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.)
If the fLeft parameter is 0, the fTop parameter is 0, or both the fLeft and the fTop parameters are 0, the RenderCenter property can be used to determine whether the image is centered, or rendered at the point specified by fLeft and fTop.
See Also
Elements: PrintEnd method, PrintStart method
Topics: Raster Images: Printing Images