Brother International TD-4520DN Raster Command Reference - Page 41

Therefore: 05 23 BA BF A2 22 2B

Page 41 highlights

Raster Command Reference Example 1 raster of raster graphics transfer: Without compression: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 22 22 23 BA BF A2 22 2B...... With compression: ED 00 FF 22 05 23 BA BF A2 22 2B ... a b c a. Since "00h" is repeated for 20 bytes, 20d -> 19d -> 13h changed into a negative number is EDh. Therefore: ED 00 b. Since "22h" is repeated for 2 bytes, 2d -> 1d -> 1h changed into a negative number is FFh. Therefore: FF 22 c. The following 6 bytes remain unchanged. 6d -> 5d -> 5h Therefore: 05 23 BA BF A2 22 2B Continue for the remaining number of bytes for the uncompressed data. Even if 00h continues until the end, it cannot be omitted. - 35 - 7. Printing Command Details

  • 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

Raster Command Reference
- 35 -
7. Printing Command Details
Example
1 raster of raster graphics transfer:
Without compression:
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 22 22 23 BA BF A2 22 2B……
With compression:
ED 00 FF 22 05 23 BA BF A2 22 2B …
a
b
c
a.
Since “00h” is repeated for 20 bytes, 20d -> 19d -> 13h changed into a negative number is EDh.
Therefore: ED 00
b.
Since “22h” is repeated for 2 bytes, 2d -> 1d -> 1h changed into a negative number is FFh.
Therefore: FF 22
c.
The following 6 bytes remain unchanged. 6d -> 5d -> 5h
Therefore: 05 23 BA BF A2 22 2B
Continue for the remaining number of bytes for the uncompressed data. Even if 00h continues until the
end, it cannot be omitted.