Chris Lee Member Licensed User Dec 14, 2018 #1 If I have an int color value such as XUI.Color_Green how do I convert that to a CSS hex color value?
I inakigarm Well-Known Member Licensed User Longtime User Dec 14, 2018 #2 Chris Lee said: If I have an int color value such as XUI.Color_Green how do I convert that to a CSS hex color value? Click to expand... Int to Hex: (from https://www.b4x.com/android/forum/threads/htmleditor-add-b4j-colorpicker-view-to-top-toolbar.73528/#content) B4X: Dim HexARGB As String = Bit.ToHexString(ColorInt) Dim HexRGB As String = HexARGB.SubString2(2,8) Upvote 0
Chris Lee said: If I have an int color value such as XUI.Color_Green how do I convert that to a CSS hex color value? Click to expand... Int to Hex: (from https://www.b4x.com/android/forum/threads/htmleditor-add-b4j-colorpicker-view-to-top-toolbar.73528/#content) B4X: Dim HexARGB As String = Bit.ToHexString(ColorInt) Dim HexRGB As String = HexARGB.SubString2(2,8)