Difference between revisions of "Component: GLCD Bitmap Drawer FAT (Graphical Library)"
Line 14: | Line 14: | ||
==GLCD Bitmap Drawer FAT component== | ==GLCD Bitmap Drawer FAT component== | ||
A component to simplify the process of drawing bitmap images to a graphical display. Reads Bitmap files directly from a SD card formatted with a FAT file system. Compatible with 24-bit & Monochrome Bitmaps. The gLCD object property specifies which LCD component to draw the bitmap to. Compatible with GLCD, NeoPixel, MIACv3, HT16K33 | A component to simplify the process of drawing bitmap images to a graphical display. Reads Bitmap files directly from a SD card formatted with a FAT file system. Compatible with 24-bit & 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 | ||
+ | 20, 1.0, 26-07-24, BR, Added pallet buffer allowing 4,8-bit bitmaps to function | ||
==Detailed description== | ==Detailed description== | ||
Line 210: | Line 215: | ||
|- | |- | ||
| colspan="2" | Automatically detects if the graphical LCD object is colour or monochrome | | colspan="2" | Automatically detects if the graphical LCD object is colour or monochrome | ||
+ | |- | ||
+ | | width="10%" align="center" | [[File:Fc9-type-7-icon.png]] | ||
+ | | width="90%" | Pallet Buffer | ||
+ | |- | ||
+ | | colspan="2" | Dedicates an area of RAM to be used as a pallet buffer allowing 4-bit and 8-bit bitmaps to be drawn efficiently. No: No additional RAM is used and only 1-bit and 24-bit bitmaps are supported. Yes: 768 additional bytes of RAM are used and 1-bit, 4-bit, 8-bit and 24-bit bitmaps are supported. | ||
|} | |} | ||
Latest revision as of 14:32, 26 July 2024
Author | Matrix TSL |
Version | 2.2 |
Category | Graphical Library |
Contents
GLCD Bitmap Drawer FAT component
A component to simplify the process of drawing bitmap images to a graphical display. Reads Bitmap files directly from a SD card formatted with a FAT file system. Compatible with 24-bit & 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 20, 1.0, 26-07-24, BR, Added pallet buffer allowing 4,8-bit bitmaps to function
Detailed description
No detailed description exists yet for this component
Examples
Here is an example that will scan for bitmap files in the root of the SD card and display them on a graphical display.
The zip file contains the Flowcode project as well as some example bitmap image files taken from Pixabay.
Place the bitmap files in the same folder as the project file for the simulation to work.
Place the bitmap files on the root of the SD card for the embedded hardware to work.
Macro reference
Display_BMP
Display_BMP_Fast
GetHeight
![]() |
GetHeight |
Returns the height of the loaded bitmap file in pixels. | |
![]() |
Filename |
The filename of the bitmap we want to measure | |
![]() |
Return |
GetWidth
![]() |
GetWidth |
Returns the width of the loaded bitmap file in pixels. | |
![]() |
Filename |
The filename of the bitmap we want to measure | |
![]() |
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_FAT.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_Lib_Draw_Bitmap_FAT.fcfx