FT800 Series Programmer Guide
Version 2.1
Document Reference No.: BRT_000030 Clearance No.: BRT#037
97
Product Page
Document Feedback Copyright © Bridgetek Limited
4.9 BITMAP_SOURCE
Specify the source address of bitmap data in FT800 graphics memory RAM_G.
Encoding
Parameters
addr
Bitmap address in graphics SRAM FT800, aligned with respect to the bitmap
format.
For example, if the bitmap format is RGB565/ARGB4/ARGB1555, the bitmap
source shall be aligned to 2 bytes.
Description
The bitmap source address is normally the address in main memory where the
bitmap graphic data is loaded.
Examples
Drawing a 64 x 64 bitmap, loaded at address 0:
dl( BITMAP_SOURCE(0) );
dl( BITMAP_LAYOUT(RGB565, 128, 64) );
dl( BITMAP_SIZE(NEAREST, BORDER,
BORDER, 64, 64) );
dl( BEGIN(BITMAPS) );
dl( VERTEX2II(48, 28, 0, 0) );
Using the same graphics data, but with source and size changed to show only a
32 x 32 detail:
dl( BITMAP_SOURCE(128 * 16 + 32) );
dl( BITMAP_LAYOUT(RGB565, 128, 64) );
dl( BITMAP_SIZE(NEAREST, BORDER,
BORDER, 32, 32) );
dl( BEGIN(BITMAPS) );
dl( VERTEX2II(48, 28, 0, 0) );