PC_PRINTER_WRITE_BMP
Write a loaded bitmap to a printer at a specified position with a given size.
Syntax:
call "PC_PRINTER_WRITE_BMP" using printer-handle
by value bmp-id
by value reserved
by value bmp-row
by value bmp-col
by value bmp-width
by value bmp-height
returning status-code
Parameters:
|
Using call prototype (see Library Routines - Key) |
Picture (32-bit systems) |
printer-handle |
cblt-x4-comp5 |
pic x(4) comp-5. |
reserved |
cblt-x4-comp5 value 0 |
pic x(4) comp-5 value 0. |
bmp-id |
cblt-x4-comp5 |
pic x(4) comp-5. |
bmp-row |
cblt-x4-comp5 |
pic x(4) comp-5. |
bmp-col |
cblt-x4-comp5 |
pic x(4) comp-5. |
bmp-width |
cblt-x4-comp5 |
pic x(4) comp-5. |
bmp-height |
cblt-x4-comp5 |
pic x(4) comp-5. |
status-code |
See Library Routines - Key |
On Entry:
printer-handle |
The printer handle returned when the printer was opened. |
bmp-id |
The unique id of the bitmap to print. |
bmp-row |
The row at which the bitmap is to be printed. |
bmp-col |
The column at which the bitmap is to be printed. |
bmp-width |
The width of the bitmap in characters. The value you specify is multiplied
by the width of the currently selected font to determine the width that is
used when printing the bitmap. |
bmp-height |
The height of the bitmap in characters. The value you specify is multiplied
by the height of the currently selected font to determine the height that
is used when printing the bitmap. |
status-code |
Printer status code:
0 |
Successful |
3 |
Printer device not open |
4 |
Out of memory while printing |
5 |
Disk full while spooling file |
7 |
Print job aborted, no file spooled to Print Manager |
11 |
Write failure |
21 |
Failed to print bitmap | |
On Exit:
Comments:
This routine is available only in the Windows environment.
Restrictions:
- This routine works with PostScript and HP PCL printers.
- This routine is not supported on HP Deskjet or dot matrix printers.
Example:
call "PC_PRINTER_WRITE_BMP" using printer-handle
by value bmp-id-logo
by value 0 size 4
by value 7 size 4
by value 5 size 4
by value 25 size 4
by value 15 size 4
returning printer-retcode
end-call
See Also: