Purpose |
Copy and resize a
| ||||||||||||||||||||||||
Syntax |
XPRINT STRETCH hndl, id, (x1,y1)-(x2,y2) TO (x3,y3)-(x4,y4) [,mix, stretch] | ||||||||||||||||||||||||
Remarks |
You can copy a complete bitmap, or a portion of it, to the host printer page, while resizing it to a larger or smaller size. The expression id is reserved for future compatibility, and must always be set to zero. The destination of the copy operation is the host printer page. The bitmap is automatically resized to fit the destination parameters. You must use care that your parameters are valid for the specified bitmaps, or results of the operation are undefined. If the mix parameter is included, it is one of the values in the following table. If not included, a default of %MIX_COPYSRC is presumed. There are 8 mix modes available to use for mixing drawing colors with the colors which already exist at the at the drawing location. The mix mode equates are predefined in PowerBASIC.
If the stretch parameter is included, it is one of the values in the following table. If not included, or it is the value zero (0), the stretch mode is unchanged. An appropriate choice of stretch mode can substantially enhance the quality of bitmaps which are changed in size. The stretch mode equates are predefined in PowerBASIC. The 4 stretch modes are:
| ||||||||||||||||||||||||
See also |