Difference between revisions of "Component: GLCD Bitmap Drawer ROM (Graphical Library)"
(One intermediate revision by the same user not shown) | |||
Line 5: | Line 5: | ||
|- | |- | ||
| width="20%" style="color:gray;" | Version | | width="20%" style="color:gray;" | Version | ||
− | | 2. | + | | 2.3 |
|- | |- | ||
| width="20%" style="color:gray;" | Category | | width="20%" style="color:gray;" | Category | ||
Line 18: | Line 18: | ||
Library Version, Component Version, Date, Author, Info | Library Version, Component Version, Date, Author, Info | ||
− | 13, | + | 13, 2.2, 22-07-24, BR, Updated Bitmap Mono Dummy Component - Testing |
− | + | 14, 2.3, 24-07-24, BR, Fixed a problem with file size reporting of 4/8 bit bitmaps | |
− | + | 14, 2.3, 24-07-24, BR, Added Pallet size information for 4/8 bit bitmaps | |
+ | 15, 2.3, 24-07-24, BR, Reduced stored Pallet size by 1/4 | ||
+ | 16, 2.3, 26-07-24, BR, Added reload file property allowing for easier way to update bitmaps from source | ||
==Detailed description== | ==Detailed description== | ||
Line 237: | Line 239: | ||
|- | |- | ||
| colspan="2" | Number of bitmaps the component can store and draw to the LCD. Min 1 / Max 10 | | colspan="2" | Number of bitmaps the component can store and draw to the LCD. Min 1 / Max 10 | ||
+ | |- | ||
+ | | width="10%" align="center" | [[File:Fc9-type-7-icon.png]] | ||
+ | | width="90%" | Reload Bitmaps | ||
+ | |- | ||
+ | | colspan="2" | Reloads all bitmaps from source, useful to do when the bitmap files change. Will automatically reset to No when complete. | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]] | | width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]] | ||
Line 251: | Line 258: | ||
|- | |- | ||
| colspan="2" | Number of bits per pixel. Currently the component only supports bitmap files with 1-bit or 24-bit colour depth. | | colspan="2" | Number of bits per pixel. Currently the component only supports bitmap files with 1-bit or 24-bit colour depth. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
| width="10%" align="center" | [[File:Fc9-type-21-icon.png]] | | width="10%" align="center" | [[File:Fc9-type-21-icon.png]] | ||
Line 268: | Line 270: | ||
|- | |- | ||
| width="10%" align="center" | [[File:Fc9-type-21-icon.png]] | | width="10%" align="center" | [[File:Fc9-type-21-icon.png]] | ||
− | | width="90%" | | + | | width="90%" | File Length |
+ | |- | ||
+ | | colspan="2" | The number of bytes of ROM the bitmap file will consume. You can vie wthe number of ROM bytes available on your target device using the Device Helper component. | ||
+ | |- | ||
+ | | width="10%" align="center" | [[File:Fc9-type-21-icon.png]] | ||
+ | | width="90%" | Pallet Size | ||
|- | |- | ||
− | | colspan="2" | | + | | colspan="2" | Number of bytes in the file length used to store the colour pallet |
|} | |} | ||
Latest revision as of 15:16, 26 July 2024
Author | Matrix TSL |
Version | 2.3 |
Category | Graphical Library |
Contents
GLCD Bitmap Drawer ROM component
A component to simplify the process of drawing bitmap images to a graphical display. Stores up to 10 bitmap images inside ROM based look up tables. Compatible with 24-bit / 256 Colour / 16 Colour / Monochrome Bitmaps. The gLCD object property specifies which LCD component to draw the bitmap to. Compatible with GLCD, NeoPixel, MIACv3, HT16K33
Version information
Library Version, Component Version, Date, Author, Info 13, 2.2, 22-07-24, BR, Updated Bitmap Mono Dummy Component - Testing 14, 2.3, 24-07-24, BR, Fixed a problem with file size reporting of 4/8 bit bitmaps 14, 2.3, 24-07-24, BR, Added Pallet size information for 4/8 bit bitmaps 15, 2.3, 24-07-24, BR, Reduced stored Pallet size by 1/4 16, 2.3, 26-07-24, BR, Added reload file property allowing for easier way to update bitmaps from source
Detailed description
No detailed description exists yet for this component
Examples
The Bitmap Drawer component must be linked to the graphical LCD using the gLCD Object property.
Here is an example which loops drawing a monochrome and 24-bit bitmaps to the EBM001 graphical display.
The bitmap files used in the example can be found here.
Here is another example which overlays several monochrome images to give the impression of animation. Shows a pair of eyes, which can randomly and momentarily look left, right or blink.
The bitmap files used in the example can be found here.
Macro reference
Display_BMP
Display_BMP_Fast
GetHeight
![]() |
GetHeight |
Returns the height of the loaded bitmap file in pixels. | |
![]() |
BitmapIndex |
Selects from attached bitmaps. Range: 0-9 | |
![]() |
Return |
GetWidth
![]() |
GetWidth |
Returns the width of the loaded bitmap file in pixels. | |
![]() |
BitmapIndex |
Selects from attached bitmaps. Range: 0-9 | |
![]() |
Return |
SetTransparentColour
![]() |
SetTransparentColour |
Sets the transparency colour, the colour that is not drawn when transparency is enabled. | |
![]() |
R |
![]() |
G |
![]() |
B |
![]() |
Return |
Property reference
Component Source Code
Please click here to download the component source project: FC_Comp_Source_Lib_Draw_Bitmap.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_Lib_Draw_Bitmap.fcfx