Component: Bitmap (Graphical Manager Primitives)

From Flowcode Help
Jump to navigationJump to search
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.


FC6 Icon.png ACS712 example

Macro reference

GetID

Fc9-comp-macro.png GetID
Returns the assigned object/widget ID. 
Fc9-u16-icon.png - UINT Return


ModifyBitmap

Fc9-comp-macro.png ModifyBitmap
Allows the bitmap image to be swapped out 
Fc9-string-icon.png - STRING Filename
Bitmap filename in 8.3 file format 
Fc9-bool-icon.png - BOOL Redraw
Allows the bitmap to be redrawn immediatley or later on. 
Fc9-void-icon.png - VOID Return


ModifyColour

Fc9-comp-macro.png ModifyColour
Changes the theme index of the selected Object or Widget. 
Fc9-u8-icon.png - BYTE Index
0=Transparent, 1=Text 
Fc9-u8-icon.png - BYTE R
 
Fc9-u8-icon.png - BYTE G
 
Fc9-u8-icon.png - BYTE B
 
Fc9-bool-icon.png - BOOL Redraw
 
Fc9-void-icon.png - VOID Return


ModifyPosition

Fc9-comp-macro.png ModifyPosition
Moves an existing object or Widget to absolute coordinates on the screen. 
Fc9-s16-icon.png - INT X
 
Fc9-s16-icon.png - INT Y
 
Fc9-bool-icon.png - BOOL Relative
0=Absolute Positioning, 1=Relative Positioning 
Fc9-void-icon.png - VOID Return


ModifyScale

Fc9-comp-macro.png ModifyScale
Changes the width and height of the selected Object or Widget. 
Fc9-u16-icon.png - UINT Width
 
Fc9-u16-icon.png - UINT Height
 
Fc9-void-icon.png - VOID Return


SetTextFloat

Fc9-comp-macro.png SetTextFloat
Draws a floating point value with optional units onto an object or Widget location. 
Fc9-f32-icon.png - FLOAT Number
 
Fc9-u8-icon.png - BYTE NumDP
Number of decimal points to display 
Fc9-string-icon.png - STRING Unit
Optional unit string to add after the numeric value. e.g. "g" or "s" 
Fc9-void-icon.png - VOID Return


SetTextLabel

Fc9-comp-macro.png SetTextLabel
Draws a string onto an object or Widget location. 
Fc9-string-icon.png - STRING Text
Text string to set as the label 
Fc9-void-icon.png - VOID Return


SetTextNumber

Fc9-comp-macro.png SetTextNumber
Draws an integer numerical value with optional units onto an object or Widget location. 
Fc9-s16-icon.png - INT Number
 
Fc9-string-icon.png - STRING Unit
Unit string to add after the numeric value. e.g. "g" or "s" 
Fc9-void-icon.png - VOID Return


Property reference

Fc9-prop-icon.png Properties
Fc9-conn-icon.png Bitmap File
Fc9-type-13-icon.png BitmapFile
 
Fc9-type-7-icon.png Refresh Bitmap
Reloads the bitmap image from file. Immediatley defaults back to no once complete. 
Fc9-conn-icon.png Appearance
Fc9-type-16-icon.png Scaling
 
Fc9-type-7-icon.png Use Transparancy
When set to yes allows a transparent colour to be assigned. 
Fc9-conn-icon.png Touch
Fc9-type-7-icon.png Touchable
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 
Fc9-conn-icon.png Text
Fc9-type-10-icon.png Text
Optional default text to add to the inside of the shape 
Fc9-type-16-icon.png Font
GLCD font to use 
Fc9-type-16-icon.png Horizontal Alignment
Horizontal alignment of the text label inside the shape 
Fc9-type-16-icon.png Vertical Alignment
Vertical alignment of the text label inside the shape 
Fc9-type-1-icon.png Text Colour
The colour of the text 

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