i write color values as attributes to Xml files. The Attribute String looks like this: #RRGGBBAA. Now I wanna read the hexadecimal color string back to a color. How can I do that? I separate the RGBA values via String.Mid(start, length). But I need the integer value of the hex codes.
Or I could actually read your post again and give you what you asked for
Dim s As String = "#01020304"
Dim c As Color = CType(s.Replace("#", "&c"), Variant)
Dim r As Integer = c.Red
Dim g As Integer = c.Green
Dim b As Integer = c.Blue
Dim a As Integer = c.Alphae