Get Known Color from int value [Tip/Trick]
Last Updated: 17 Nov 2009
Page Views: 189
Rating: 0.0 / 5
Votes: 0
Popularity: 0.0
Bookmark Count: 0
Licence: The Code Project Open License (CPOL)
if you think Color myColor = Color.FromArgb(0); will give you the known color black, then you are wrong. you need to get it from the colortranlator class. like this:
Color c = ColorTranslator.FromWin32(0);
So what am i saying ?, is Color.FromArgb(0) not the same as ColorTranslator.FromWin32(