Drawing a Bitmap

Top  Previous  Next

This escape places a bitmap onto the page at the current position. The bitmap must be already present on the PC running ZTERM 2000.

Parameter

Value or Description

Lead in

<ESC>b

Sequence

Name of the Windows file that contains the bitmap. If a specific path is not provided, ZTERM 2000 will attempt to obtain the file from the folder where ZTERM 2000 is installed.

Termination

Null

 

Example

Draws the COOL.STF logo at the top left corner of the page:

PRINT CHR$(27);"=0,0";CHR$(0);! position

PRINT CHR$(27);"b";

PRINT "title.bmp";CHR$(0);

 

Note that bitmaps are printed pixel for pixel on the printer. If you use this feature to display company or report logos, then provide multiple copies of the bitmap scaled for various DPI sizes and use the Get DPI escape to allow the host to select the closest matching bitmap.