RpPrinter:DrawBmp() Method
<< Click to Display Table of Contents >> RpPrinter:DrawBmp() Method |
![]() ![]() ![]() |
Purpose
Draw a bitmap on the printer or print preview window.
Syntax
<oRpPrinter>:DrawBmp([nY], [nX], cFilename, [nHeight], [nWidth], [nStartRow], [nStartCol], [lStretch])
Arguments
nY |
Optional. The row to start printing the bitmap. The default is the current PROW setting. |
nX |
Optional. The column to start printing bitmap. The default is the current PCOL setting. |
cFilename |
The file name (including path) of the bitmap. |
nHeight |
Optional. The height of the bitmap. The default is the full height of the bitmap. |
nWidth |
Optional. The width of the bitmap. The default is the full width of the bitmap. |
nStartRow |
Optional. The first row of pixels in the bitmap to print. The default is the first row. |
nStartCol |
Optional. The first column of pixels in the bitmap to print. The default is the first column. |
lStretch |
Optional. Determines if the bitmap is stretched or clipped if nHeight and nWidth don't equal the full height and width. |
Description
This method prints a bitmap on the printer or print preview window. The memory management associated with loading the file, displaying the bitmap, and cleanup are all handled by this method. The bitmap may be larger than 64K and have 256 colors.
Example
// Draw a bitmap
oRpPrinter:DrawBmp(, , "C:\WINDOWS\REDBRICK.BMP")