BitmapSource
From MCS Wiki AVR
(Difference between revisions)
(Created page with "= <span class="f_Header">Action</span> = Specify the source address of bitmap data in FT800 graphics memory RAM_G <span style="font-family: Arial;"> </span> <span styl...") |
|||
Line 44: | Line 44: | ||
= <span class="f_Header">Example</span> = | = <span class="f_Header">Example</span> = | ||
+ | |||
+ | <source lang="bascomavr"> | ||
+ | ' Drawing a 64 x 64 bitmap, loaded at address 0 | ||
+ | BitmapSource 0 | ||
+ | BitmapLayout RGB565, 128, 64 | ||
+ | BitmapSize NEAREST, BORDER, BORDER, 64, 64 | ||
+ | Begin_G BITMAPS | ||
+ | Veterx2II 48, 28, 0, 0 | ||
+ | </source> [[File:Clip0094.png|center|Clip0094.png]] <source lang="bascomavr"> | ||
+ | Using the same graphics data, but with source and size changed to show only a 32 x 32 detail | ||
+ | BitmapSource 128 * 16 + 32 | ||
+ | BitmapLayout RGB565, 128, 64 | ||
+ | BitmapSize NEAREST, BORDER, BORDER, 32, 32 | ||
+ | Begin_G BITMAPS | ||
+ | Vertex2II 48, 28, 0, 0 | ||
+ | </source> [[File:Clip0095.png|center|Clip0095.png]] | ||
+ | |||
+ | |||
+ | |||
+ | {{Languages}} | ||
+ | |||
+ | [[Category:FT800 Commands]] |
Latest revision as of 22:07, 12 December 2014
Contents |
Action
Specify the source address of bitmap data in FT800 graphics memory RAM_G
Syntax
BitmapSource Addr
Remarks
Addr |
Bitmap address in graphics FT800 SRAM, 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. |
The bitmap source address is normally the address in main memory where the bitmap graphic data is loaded.
See also
Example
' Drawing a 64 x 64 bitmap, loaded at address 0 BitmapSource 0 BitmapLayout RGB565, 128, 64 BitmapSize NEAREST, BORDER, BORDER, 64, 64 Begin_G BITMAPS Veterx2II 48, 28, 0, 0
Using the same graphics data, but with source and size changed to show only a 32 x 32 detail BitmapSource 128 * 16 + 32 BitmapLayout RGB565, 128, 64 BitmapSize NEAREST, BORDER, BORDER, 32, 32 Begin_G BITMAPS
Vertex2II 48, 28, 0, 0
Languages | English |
---|