How to translate legacy system colors to (A)RGB?
- by Paul Sasik
I have a list of color values encoded as signed integers in a legacy INI file that I need to translate into (A)RGB values with .NET. An INI example:
[INI_Section]
Color=-2147483633
Doing something like:
Color.FromArgb(-2147483633)
gives an alpha-blended version of a color that is not at all what I expect. Is there a .NET method for translating these legacy colors properly? Note that pInvoke to OlePro32.dll is not an option.