Description |
This function prints a DIB at the specified position and with the specified size. The input iLeft, iTop, iRight and iBottom parameters contain the Top-Left and Bottom-Right coordinates of the desired printed image. The position and size can be specified in pixels, tens of mm (mm/10) or hundredths of Inches (Inch/100), as set by the bUnits parameter. |
||
Syntax |
RetVal = [BIPrint.]BiPrintImageExt2 hDC hDIB iLeft iTop iRight iBottom bUnits |
||
Returns |
RetVal |
Integer |
It is zero on success or error code on error. |
Remarks |
hDC |
LONGLONG Printer hDC. |
|
|
hDIB |
LONGLONG DIB handle. |
|
|
iLeft |
Integer |
Top-left point x coordinate of the printed image. |
|
iTop |
Integer |
Top-left point y coordinate of the printed image. |
|
iRight |
Integer |
Bottom-right point x coordinate of the printed image. |
|
iBottom |
Integer |
Bottom-right point x coordinate of the printed image. |
|
bUnits |
Byte |
Units of the iLeft, iTop, iRight, iBottom values. Can be one of the following values: 1: MM_TEXT (pixels) 2: MM_LOMETRIC (mm/10) 4: MM_LOENGLISH (Inch/100) |
Usage
[C#]
long dc = BiPrint.BiOpenPrinter("Black Ice ColorPlus", 0);
BiPrint.BiStartDoc(dc);
BiPrint.BiStartPage(dc);
BiPrint.BiPrintImageExt2(dc, hDib, 10, 10, 400, 400, 1);
BiPrint.BiEndPage(dc);
BiPrint.BiEndDoc(dc);
BiPrint.BiClosePrinter(dc);