FT800 Series Programmer Guide
Version 2.1
Document Reference No.: BRT_000030 Clearance No.: BRT#037
104
Copyright © Bridgetek Limited
4.14
BITMAP_TRANSFORM_E
Specify the E coefficient of the bitmap transform matrix
Encoding
31 24 23 17 16 0
0x19
Reserved
e
Parameters
e
Coefficient E of the bitmap transform matrix, in signed 8.8 bit fixed-point
form. The initial value is 256
Description
BITMAP_TRANSFORM_A-F coefficients are used to perform bitmap transform
functionalities such as scaling, rotation and translation. These are similar to openGL
transform functionality.
Examples
A value of 0.5 (128) causes the bitmap appear double height:
dl( BITMAP_SOURCE(0) );
dl( BITMAP_LAYOUT(RGB565, 128, 64) );
dl( BITMAP_TRANSFORM_E(128) );
dl( BITMAP_SIZE(NEAREST, BORDER,
BORDER, 128, 128) );
dl( BEGIN(BITMAPS) );
dl( VERTEX2II(16, 0, 0, 0) );
A value of 2.0 (512) gives a half-height bitmap:
dl( BITMAP_SOURCE(0) );
dl( BITMAP_LAYOUT(RGB565, 128, 64) );
dl( BITMAP_TRANSFORM_E(512) );
dl( BITMAP_SIZE(NEAREST, BORDER,
BORDER, 128, 128) );
dl( BEGIN(BITMAPS) );
dl( VERTEX2II(16, 0, 0, 0) );