Support
model
CT-S280
CT-S300
CT-S2000
CT-S4000
CT-S251
CT-D150/E351
CT-S281
CT-S310
CT-S801/851
CT-S601/651
CT-P29x series
CT-S310II
CT-D151/E651
- 380 -
2.2.18 Gray Scale Commands
GS ( z GrayBMP,
size,height,bitcount,xL,yL,xpixel,ypixel,d1…dk
[Function]
Print of the gray scale raster graphics
[Code]
<1D>H<28>H<7A>H<kind1…10><size1,2,3,4><height1,2><bitcount1,2>
<xL><yL><xpixel1,2,3,4><ypixel1,2,3,4>[d1…dk]
[Range]
kind1=71("G"), kind2=114("r"), kind3=97("a"), kind4=121("y"), kind5=66("B ")
kind6=77("M"), kind7=80("P "), kind8,9,10=32(" ")
15
≦
size
≦
1073479687
*size=(size1+size2×16+size3×256+size 4×4096)
24
≦
height
≦
40
*height=(height 1+height 2×256)
bitcount1=4, bitcount2=0
1
≦
xL
≦
2, 1
≦
yL
≦
2
1
≦
xpixel
≦
8192
*xpixel=(xpixel2×256+xpixel3×65536+xpixel4×16777216)
1
≦
ypixel
≦
26208
*ypixel=(ypixel2×256+ypixel3×65536+ypixel4×16777216)
Data Size
Function
GS ( z
3 bytes
1DH 28H 7AH
Fixed
kind
10 bytes
“G20H(Space) 3bytes
Fixed
size
4 bytes
The number of bytes from height to the file last
height
2 bytes
The number of Stored line max 28H 00H
24
≦
height
≦
40
bitcount
2 bytes
04H 00H
Fixed
xL
1 byte
Horizontal Direction 1x, 2x
1
≦
xL
≦
2
yL
1 byte
Vertical Direction 1x, 2x
1
≦
yL
≦
2
xpixel
4 bytes
The number of graphics Horizontal dots
1
≦
xp.
≦
8192
ypixel
4 bytes
The number of graphics Vertical dots
1
≦
yp.
≦
26208
d1…dk
K bytes
Graphics data “k”=(1)/2×ypixel