2018/2/26
Revision: 1 Page: 59
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:dye black (F-column)
01H:magenta (D-column), lower 2-bits for 6-values per pixel
02H:cyan (C-column), lower 2-bits for 6-values per pixel
04H:yellow (E-column)
40H:pigment black 1 (A-column)
60H:pigment black 2 (B-column)
81H:magenta (D- column), upper 2-bits for 6-values per pixel
82H:cyan (C-column), upper 2-bits for 6-values per pixel
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.
03H: 6-values per pixel (refer [Notes])
For every 4-bits of data
0000 no dots
0100 a SS size dot
1000 a SM size dot
1100 a SL size dot
1101 a L1 size dot
1110 a L2 size dot
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.