Lexmark MC2640 Printer Languages and Interfaces Technical Reference - Page 36

Tagged Image File Format, Delta row, Example

Page 36 highlights

Printer Control Language (PCL) emulation 36 Example: ESC*r1A ESC*b2W '07FF'x ESC*b6W '0080 0500 0001'x ESC*b6W '0080 0500 0001'x ... ESC*b6W '0080 0500 0001'x ESC*b2W '07FF'x ESC*rB |Start raster graphics at current position |Run-Length: 8x'FF'x |1x'80'x, 6x'00'x, 1x'01'x |1x'80'x, 6x'00'x, 1x'01'x |... |1x'80'x, 6x'00'x, 1x'01'x |8x'FF'x |End graphics Tagged Image File Format TIFF "Packbits" contain a control byte (a signed number) that indicates whether the raster data bytes repeats (up to 127 times) or prints as encoded data. • For control values of 0 through 127, the next (Control+1) bytes are uncoded. • For control values of -1 through -127 ('FF'x - '81'x), the next byte is repeated (Abs(Control)+1) times. Example: ESC*p300x900Y ESC*b2M ESC*r1A ESC*b2W 'F9FF'x ESC*b6W '0080 FB00 0001'x ESC*b9W '078000000000000001'x ... ESC*b6W '0080 FB00 0001'x ESC*b2W 'F9FF'x ESC*rB |Move cursor to 1 x 3 in. |Set compression to TIFF |Start raster graphics at current position | TIFF: 8x'FF'x |1:'80'x, 6x'00'x, 1: '01'x or |8: '8000000000000001'x |... |1:'80'x, 6x'00'x, 1: '01'x |8x'FF'x |End graphics Delta row Delta row is a compression mode that identifies and transmits only those bytes different from the ones in a preceding row. The control byte consists of two parts: • High 3 bits-Number of bytes to replace +1 (1 to 8). • Low 5 bits-Offset from last unmodified byte (0-30); if the offset is 31, the next bytes are added to the offset until the next byte is not 255.

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148

Example:
ESC
*r1A
|Start raster graphics at current position
ESC
*b2W '07FF'x
|Run-Length: 8x'FF'x
ESC
*b6W '0080 0500 0001'x
|1x'80'x, 6x'00'x, 1x'01'x
ESC
*b6W '0080 0500 0001'x
|1x'80'x, 6x'00'x, 1x'01'x
...
|
...
ESC
*b6W '0080 0500 0001'x
|1x'80'x, 6x'00'x, 1x'01'x
ESC
*b2W '07FF'x
|8x'FF'x
ESC
*rB
|End graphics
Tagged Image File Format
TIFF "Packbits" contain a control byte (a signed number) that indicates whether the raster data bytes repeats
(up to 127 times) or prints as encoded data.
For control values of 0 through 127, the next (Control+1) bytes are uncoded.
For control values of -1 through -127 ('FF'x - '81'x), the next byte is repeated (Abs(Control)+1) times.
Example:
ESC
*p300x900Y
|Move cursor to 1 x 3 in.
ESC
*b2M
|Set compression to TIFF
ESC
*r1A
|Start raster graphics at current position
ESC
*b2W 'F9FF'x
| TIFF: 8x'FF'x
ESC
*b6W '0080 FB00 0001'x
|1:'80'x, 6x'00'x, 1: '01'x or
ESC
*b9W '078000000000000001'x
|8: '8000000000000001'x
...
|
...
ESC
*b6W '0080 FB00 0001'x
|1:'80'x, 6x'00'x, 1: '01'x
ESC
*b2W 'F9FF'x
|8x'FF'x
ESC
*rB
|End graphics
Delta row
Delta row is a compression mode that identifies and transmits only those bytes different from the ones in a
preceding row.
The control byte consists of two parts:
High 3 bits—Number of bytes to replace +1 (1 to 8).
Low 5 bits—Offset from last unmodified byte (0-30); if the offset is 31, the next bytes are added to the offset
until the next byte is not 255.
Printer Control Language (PCL) emulation
36