This escape returns the X and Y-Axis DPI or Dots Per Inch. This function is useful when displaying bitmaps and you need to use a different bitmap file to keep the real size of the printed bitmap the same, despite differences in printer resolution.
Parameter |
Value or Description |
Lead-In |
<ESC>i |
Terminator |
none |
Example
This displays one bitmap for 300 DPI and another for 600 DPI:
PRINT CHR$(27);"i";
INPUT "";DPIX,DPIY
FILENAME = ""
IF DPIX = 300 AND DPIY = 300 THEN &
FILENAME = "300DPI.BMP"
IF DPIX = 600 AND DPIY = 600 THEN &
FILENAME = "600DPI.BMP"
IF FILENAME <> "" THEN &
PRINT CHR$(27);"b";FILENAME;CHR$(0);