PrintBitmap
PowerScript function
Description
Writes a bitmap at the specified location on the current
page.
Syntax
|
1 |
PrintBitmap ( printjobnumber, bitmap, x, y, width, height ) |
|
Argument |
Description |
|---|---|
|
printjobnumber |
The number the PrintOpen function assigned to the print |
|
bitmap |
A string whose value is the file name of the bitmap |
|
x |
An integer whose value is the x coordinate (in thousandths |
|
y |
An integer whose value is the y coordinate (in thousandths |
|
width |
The integer width of the bitmap image in thousandths of an |
|
height |
The integer height of the bitmap image in thousandths of |
Return value
Integer. Returns 1 if it succeeds and -1 if an error occurs. If any
argument’s value is null, PrintBitmap returns null.
Usage
PrintBitmap does not change the position of the print cursor, which
remains where it was before the function was called. In general, print
functions in which you specify coordinates do not affect the print cursor
(see the functions listed in See also).
Examples
These statements define a new blank page and then print the bitmap
in file d:PBBITMAP1.BMP in its original size at location 50,100:
|
1 2 3 4 5 6 7 8 9 |
long Job // Define a new blank page. Job = PrintOpen( ) // Print the bitmap in its original size. PrintBitmap(Job, "d:PBBITMAP1.BMP", 50,100, 0,0) // Send the page to the printer and close Job. PrintClose(Job) |
See also