EasyManua.ls Logo

Bridgetek FT801 - Bitmap transformation matrix; Color and transparency

Default Icon
263 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
FT800 Series Programmer Guide
Version 2.1
Document Reference No.: BRT_000030 Clearance No.: BRT#037
27
Product Page
Document Feedback 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 = 󰇣
  
  
󰇤, it is named as identity matrix.
The coordinates
󰆒
,
󰆒
after transforming is calculated in following equation:
󰆒
󰆒
= m × 󰇩
󰇪
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

Table of Contents