Intermec CV30 Intermec Terminal Emulator (ITE) Programmer's Reference Manual - Page 148

Printing a Bitmap Using Compressed Data, Compressed Data Command Sequence Example

Page 148 highlights

Chapter 3 - Extended Commands Bitmap Printing Command Sequence Example (continued) Character =27 =ff...=ff =22 =24 =81 =28 =03 Description Begin sending binary data Binary image data End of line Repeat last line Number of times the previous line should be repeated +0x80 End of bitmap End of text (the same as ) Printing a Bitmap Using Compressed Data In the next example, the first line creates a simple form and the third line executes the print command. The second line prints a short, 5-dot-wide horizontal line using compressed data, and is explained in the next table. ^9f#P8N8100000C;P;E2;F2;R;E2#^9c ^9f#P8N8100000=02=1Bg0=21=80=43=C2=25=c0=c0=c0=c0=c0=c0=c0=22=24 =84=28=03#^9c ^9f#P8N81000001;1;#^9c Compressed Data Command Sequence Example Character =02 =1Bg0 =21=80=43=C2 =25 =c0...=c0 =22 =24 =84 =28 =03 Description Start of text (the same as ) Enter direct graphics mode Set the origin to the upper left corner of the form Compressed data starting with black (=26 to start with white) Number of black dots, then white, then black, etc. (all +0x80) End of line Repeat last line Number of times the previous line should be repeated +0x80 End of bitmap End of text (same as ) 136 Intermec Terminal Emulator (ITE) Programmer's Reference Manual

  • 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
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184

Chapter 3 — Extended Commands
136
Intermec Terminal Emulator (ITE) Programmer’s Reference Manual
Printing a Bitmap Using Compressed Data
In the next example, the first line creates a simple form and the third line executes
the print command. The second line prints a short, 5-dot-wide horizontal line using
compressed data, and is explained in the next table.
^9f#P8N8100000<STX><ESC>C;<ESC>P;E2;F2;R;<ESC>E2<CAN><ETX>#^9c
^9f#P8N8100000=02=1Bg0=21=80=43=C2=25=c0=c0=c0=c0=c0=c0=c0=22=24
=84=28=03#^9c
^9f#P8N8100000<STX><US>1;<RS>1;<ETB><ETX>#^9c
=27
Begin sending binary data
=ff…=ff
Binary image data
=22
End of line
=24
Repeat last line
=81
Number of times the previous line should be repeated +0x80
=28
End of bitmap
=03
End of text (the same as <ETX>)
Compressed Data Command Sequence Example
Character
Description
=02
Start of text (the same as <STX>)
=1Bg0
Enter direct graphics mode
=21=80=43=C2
Set the origin to the upper left corner of the form
=25
Compressed data starting with black (=26 to start with white)
=c0…=c0
Number of black dots, then white, then black, etc. (all +0x80)
=22
End of line
=24
Repeat last line
=84
Number of times the previous line should be repeated +0x80
=28
End of bitmap
=03
End of text (same as <ETX>)
Bitmap Printing Command Sequence Example (continued)
Character
Description