2011/03/02 
Revision: 1            Page: 54 
 
 
5.1.28 Transfer Raster image ESC i    r c b nL nH mL mH d1......dk 
 
ESC i    r c b nL nH mL mH d1......dk  Ver 1.00 
[Name]    Transfer Raster image 
[Format]    1BH,69H, r, c, b, nL, nH, mL, mH, d1,  d2, ..., dk 
[Range of Definition] 
r = 00H, 01H, 02H, 04H,11H,12H 
c = 00H, 01H 
b = 01H, 02H 
0000H <= (nH*256 + nL) <= 7FFFH 
0001H <= (mH*256 + mL) <= 7FFFH 
[Function] 
1) Prints dot graphics in raster format. 
2) Parameters are used as described below: 
r :  color of ink 
00H:black    01H:magenta 
02H:cyan    04H:yellow 
40H:black2    60H:black3 
c :  compression method   
    00H:non-compressed 
    01H:Run Length Encoding   
b :  bit length required for each pixel of image data 
    01H:1bit/pixel (for Micro, Normal x 1 x 2 dot 
  For every 1 bit of data: 
    0 no dot 
    1 a normal size dot for the current dpi 
  will be printed at the pixel location for that one bit. 
    02H:2bits per pixel (for dot sizes requiring 2 bits to designate the size) 
  For every 2 bits of data: 
    00 no dot 
    01 a small dot 
    10 a medium size dot 
    11 a large size dot 
  will be printed at the pixel location for those 2 bits. 
  Sample bits of data (for 4 pixels of an image), and the results of that data, 
are displayed in the upcoming diagram. 
   
nL, nH: Horizontal byte count, according to the following formula: 
    nH  = INT(horizontal byte count / 256) 
  = INT(((horizontal dot count) * (bit length of each pixel) + 7) / 8) /256 
    nL    = MOD(horizontal byte count / 256) 
  = MOD(((horizontal dot count) * (bit length of each pixel) + 7) / 8) /256 
mL, mH: Vertical dot count ( rows of dot graphics ), according to the following formula: 
    mH = INT(vertical dot count / 256) 
    mL = MOD(vertical dot count / 256) 
k :  Total numbers of data bytes, according to the following formula: 
    k = (nH*256 + nL) * (mH*256 + mL) 
 
** Sample bits of data for 4 pixels of an image using 2 bits data/pixel: 
The size of the dot is designated with a binary number, using 2 bits for every 1 picture element. 
No Dot: 00, small dot: 01, medium dot: 10, large dot: 11 
1 Byte
Data = 0 0 0 1 1 0 1 1 = 0x1B
No Small Middle Large
 
 
  [Initial State]  -