### Store & Load fx.Colors Value

To store & load a fx.Colors Value, use the subroutines fx.Colors.To32Bit and From32Bit
Example using a Map
`Sub Process_Globals
'Core Controls
Private fx As JFX
End Sub`
'Create the Settingsmap with the Key ButtonTextColor
Dim SettingsMap As Map = CreateMap("ButtonTextColor": fx.Colors.To32Bit(fx.Colors.Red))
'For Tests
Log("ButtonTextColor: " & SettingsMap.Get("ButtonTextColor"))
Output:
ButtonTextColor: -65536
'Assign the color to the Button via an Integer
Dim ButtonTextColor As Int = SettingsMap.Get("ButtonTextColor")
btnAbout.TextColor = fx.Colors.From32Bit(ButtonTextColor)
Just to reiterate the Bits and Bytes ...
The Colors Value is 32 Bit with 4 Bytes A, R, G, B
1 Byte = 8 Bit > 4 Bytes A, R, G, B > 32 Bit
RED = -65536 = 11111111111111110000000000000000
GREEN = -16711936 = 11111111000000001111111100000000
BLUE = -16776961 = 11111111000000000000000011111111

Changed: , Category: Colors, File: T6C174M1265.htm, ID: 1265