
Table 7: Raster Graphics Commands
COMMAND
HEX VALUE
FUNCTION
ESC * t # R
1B 2A 74 # 52
Raster Resolution
# = 300 : 300 dots/inch
ESC * b # Y
1B 2A 62 # 59
Raster Y Offset
# = Number of raster lines of vertical movement.
ESC * b # M
1B 2A 62 # 4D
Raster Compression Mode
# = 0 : Unencoded
# = 1 : Run-Length encoding
# = 2 : Tagged Image File Format(TIFF)
# = 3 : Delta Row
ESC * b # W[binary data]
1B 2A 62 # 57
Transfer Raster Data
# = Number of bytes in the raster row
ESC * c # A
1B 2A 63 # 41
Rectangle Width
# = Number of dots
ESC * c # B
1B 2A 63 # 42
Rectangle Height
# = Number of dots
ESC * c # H
1B 2A 63 # 48
Rectangle Width (Decipoints)
# = Number of decipoints
ESC * c # V
1B 2A 63 # 56
Rectangle Height (Decipoints)
# = Number of decipoints
ESC * c # P
1B 2A 63 # 50
Fill Rectangular Area
# = 0 – Black fill (rule)
# = 1 – Erase (White) fill
# = 2 – Shaded fill
# = 3 – Cross-hatch fill
# = 5 – Current pattern fill
ESC * c # G
1B 2A 63 # 47
Area Fill
If Shaded Fill
# = 1 - 100 = 1 –100% shade
If Cross-Hatch Fill
# = 1 – Pattern #1
# = 2 – Pattern #2
# = 3 – Pattern #3
# = 4 – Pattern #4
# = 5 – Pattern #5
# = 6 – Pattern #6