任何人都可以告诉我如何将三个int vales r,g,b转换为C#中的字符串颜色(hexa值)
解决方法
int red = 255; int green = 255; int blue = 255; string theHexColor = "#" + red.ToString("X2") + green.ToString("X2") + blue.ToString("X2");
int red = 255; int green = 255; int blue = 255; string theHexColor = "#" + red.ToString("X2") + green.ToString("X2") + blue.ToString("X2");