FT800 Series Programmer Guide
Version 2.1
Document Reference No.: BRT_000030 Clearance No.: BRT#037
27
Copyright © Bridgetek Limited
2.5.5
Bitmap transformation matrix
To achieve the bitmap transformation, the bitmap transform matrix below is specified in
the FT800 and denoted as
m
m
=
[
𝐵𝐼𝑇𝑀𝐴𝑃_𝑇𝑅𝐴𝑁𝑆𝐹𝑂𝑅𝑀_𝐴 𝐵𝐼𝑇𝑀𝐴𝑃_𝑇𝑅𝐴𝑁𝑆𝐹𝑂𝑅𝑀_𝐵 𝐵𝐼𝑇𝑀𝐴𝑃_𝑇𝑅𝐴𝑁𝑆𝐹𝑂𝑅𝑀_𝐶
𝐵𝐼𝑇𝑀𝐴𝑃_𝑇𝑅𝐴𝑁𝑆𝐹𝑂𝑅𝑀_𝐷 𝐵𝐼𝑇𝑀𝐴𝑃_𝑇𝑅𝐴𝑁𝑆𝐹𝑂𝑅𝑀_𝐸 𝐵𝐼𝑇𝑀𝐴𝑃_𝑇𝑅𝐴𝑁𝑆𝐹𝑂𝑅𝑀_𝐹]
by default m =
[1.0 0.0 0.0
0.0 1.0 0.0
]
, it is named as identity matrix.
The coordinates
𝑥
′
,
𝑦
′
after transforming is calculated in following equation:
[
𝑥
′
𝑦
′
1
]
=
m
×
[
𝑥
𝑦
1
]
i.e.:
𝑥
′
= 𝑥 ∗ 𝐴 + 𝑦 ∗ 𝐵 + 𝐶
𝑦
′
= 𝑥 ∗ 𝐷 + 𝑦 ∗ 𝐸 + 𝐹
where A,B,C,E,D,E,F stands for the values assigned by commands
BITMAP_TRANSFORM_A-F.
2.5.6
Color and transparency
The same bitmap can be drawn in more places on the screen, in different colors and
transparency:
dl
(
COLOR_RGB
(
255
,
64
,
64
));
// red at (200, 120)
dl
(
VERTEX2II
(
200
,
120
,
0
,
0
));
dl
(
COLOR_RGB
(
64
,
180
,
64
));
// green at (216, 136)
dl
(
VERTEX2II
(
216
,
136
,
0
,
0
));
dl
(
COLOR_RGB
(
255
,
255
,
64
));
// transparent yellow at (232, 152)
dl
(
COLOR_A
(
150
));
dl
(
VERTEX2II
(
232
,
152
,
0
,
0
));
Code snippet 10 color and transparency