27 GRAPHICS ENGINE (GE)
S1C33L26 TECHNICAL MANUAL
Seiko Epson Corporation
27-45
Argument 2 (Coordinates of upper left corner)
D[31:16] Y1 Coordinate[15:0] Bits
Specifies the Y coordinate of the character drawing area upper left corner.
D[15:0] X1 Coordinate[15:0] Bits
Specifies the X coordinate of the character drawing area upper left corner.
Argument 3 (Coordinates of lower right corner)
D[31:16] Y2 Coordinate[15:0] Bits
Specifies the Y coordinate of the character drawing area lower right corner.
D[15:0] X2 Coordinate[15:0] Bits
Specifies the X coordinate of the character drawing area lower right corner.
When the Resize/Tile Select[1:0] bits are set to 0x0 (normal drawing), the coordinate setting values of
the lower right corner are ignored.
Work area
(Clipping area)
X1
Y1
(0, 0)
(X2, Y2)
Y2
X2
Memory
(X1, Y1)
Font set
Index n
Font data
(X2, Y2)
(X1, Y1)
(X2, Y2)
(X1, Y1)
Normal
(X2, Y2)
(X1, Y1)
Rotation
Resizing
(X2, Y2)
(X1, Y1)
Tiling
5.14.1 Character Drawing
Figure 27.
DECOMP Command (Decompression and Drawing)
27.5.15
Bit
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9
8
7
6
5
4
3
2
1
0
CMD
0x22
0xffff
ARG1
Effect Setting
reserved
re
se
rv
ed
R
es
iz
e/
T
ile
S
el
ec
t
re
se
rv
ed
R
ot
at
io
n
S
el
ec
t
C
lip
E
na
bl
e
Tr
an
sp
ar
en
t E
na
bl
e
P
al
et
te
S
el
ec
t
S
yn
c
E
na
bl
e
W
rit
e
E
ffe
ct
S
et
tin
g
ARG2
Start Address
ARG3
Y1 Coordinate
X1 Coordinate
ARG4
Y2 Coordinate
X2 Coordinate
The DECOMP command decompresses the compressed image data (Run length encoded data) located at the speci-
fied memory address and draws the image within the area specified with the X and Y coordinates of the upper left
and lower right corners in the work area. The GE also supports uncompressed data. The command allows specifica-
tion of drawing effects such as resizing, tiling, and rotation as well as general drawing effects.
If the image data has a color depth (1/2/4 bpp) different from the bpp mode set in the GE module, the color data is
automatically converted according to the GE bpp mode before the image is written to the work area (color reduc-
tion is not supported).