Component: Bitmap (Graphical Manager Primitives): Difference between revisions
Appearance
m Text replacement - "width="10%" align="center" style="background-color:#D8C9D8;"" to "width="10%" align="center" class="mtx-class-macrohead"" |
m Text replacement - "style="background-color:#EAE1EA;"" to "class="mtx-class-propfolder"" |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 33: | Line 33: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''GetID''' | ||
|- | |- | ||
| colspan="2" | Returns the assigned object/widget ID. | | colspan="2" | Returns the assigned object/widget ID. | ||
| Line 47: | Line 47: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ModifyBitmap''' | ||
|- | |- | ||
| colspan="2" | Allows the bitmap image to be swapped out | | colspan="2" | Allows the bitmap image to be swapped out | ||
| Line 71: | Line 71: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ModifyColour''' | ||
|- | |- | ||
| colspan="2" | Changes the theme index of the selected Object or Widget. | | colspan="2" | Changes the theme index of the selected Object or Widget. | ||
| Line 110: | Line 110: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ModifyPosition''' | ||
|- | |- | ||
| colspan="2" | Moves an existing object or Widget to absolute coordinates on the screen. | | colspan="2" | Moves an existing object or Widget to absolute coordinates on the screen. | ||
| Line 139: | Line 139: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ModifyScale''' | ||
|- | |- | ||
| colspan="2" | Changes the width and height of the selected Object or Widget. | | colspan="2" | Changes the width and height of the selected Object or Widget. | ||
| Line 163: | Line 163: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SetTextFloat''' | ||
|- | |- | ||
| colspan="2" | Draws a floating point value with optional units onto an object or Widget location. | | colspan="2" | Draws a floating point value with optional units onto an object or Widget location. | ||
| Line 192: | Line 192: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SetTextLabel''' | ||
|- | |- | ||
| colspan="2" | Draws a string onto an object or Widget location. | | colspan="2" | Draws a string onto an object or Widget location. | ||
| Line 211: | Line 211: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SetTextNumber''' | ||
|- | |- | ||
| colspan="2" | Draws an integer numerical value with optional units onto an object or Widget location. | | colspan="2" | Draws an integer numerical value with optional units onto an object or Widget location. | ||
| Line 236: | Line 236: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Properties''' | ||
|- | |- | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Bitmap File | ||
|- | |- | ||
|- | |- | ||
| Line 253: | Line 253: | ||
| colspan="2" | Reloads the bitmap image from file. Immediatley defaults back to no once complete. | | colspan="2" | Reloads the bitmap image from file. Immediatley defaults back to no once complete. | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Appearance | ||
|- | |- | ||
|- | |- | ||
| Line 267: | Line 267: | ||
| colspan="2" | When set to yes allows a transparent colour to be assigned. | | colspan="2" | When set to yes allows a transparent colour to be assigned. | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Touch | ||
|- | |- | ||
|- | |- | ||
| Line 276: | Line 276: | ||
| colspan="2" | Determines if the display creator defined area responds to touches Touch is detected by using the DisplayManager::CheckForTouch macro with the X,Y coordinates of a touch | | colspan="2" | Determines if the display creator defined area responds to touches Touch is detected by using the DisplayManager::CheckForTouch macro with the X,Y coordinates of a touch | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Text | ||
|- | |- | ||
|- | |- | ||
Latest revision as of 14:37, 13 July 2026
| Author | Matrix TSL |
| Version | 1.0 |
| Category | Graphical Manager Primitives |
Bitmap component
A bitmap primitive used with the Graphical Manager on the GLCD Layout Editor panel. Requires a bitmap drawer GLCD library to be connected to the GLCD and the Display Manager.
Detailed description
No detailed description exists yet for this component
Examples
A simple example shows how to use a ASC712 to measure current range of +/- 5A. The component type can be changed within its properties.
Macro reference
GetID
| GetID | |
| Returns the assigned object/widget ID. | |
| Return | |
ModifyBitmap
| ModifyBitmap | |
| Allows the bitmap image to be swapped out | |
| Filename | |
| Bitmap filename in 8.3 file format | |
| Redraw | |
| Allows the bitmap to be redrawn immediatley or later on. | |
| Return | |
ModifyColour
| ModifyColour | |
| Changes the theme index of the selected Object or Widget. | |
| Index | |
| 0=Transparent, 1=Text | |
| R | |
| G | |
| B | |
| Redraw | |
| Return | |
ModifyPosition
| ModifyPosition | |
| Moves an existing object or Widget to absolute coordinates on the screen. | |
| X | |
| Y | |
| Relative | |
| 0=Absolute Positioning, 1=Relative Positioning | |
| Return | |
ModifyScale
| ModifyScale | |
| Changes the width and height of the selected Object or Widget. | |
| Width | |
| Height | |
| Return | |
SetTextFloat
SetTextLabel
| SetTextLabel | |
| Draws a string onto an object or Widget location. | |
| Text | |
| Text string to set as the label | |
| Return | |
SetTextNumber
Property reference
Component Source Code
Please click here to download the component source project: FC_Comp_Source_DC_Bitmap.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_DC_Bitmap.fcfx