将RGB转换成颜色

来源:互联网 发布:linux服务器防御 编辑:程序博客网 时间:2024/05/17 22:23
 public string GetColor(int red, int green, int blue)
        {
            Color cl= System.Drawing.Color.FromArgb(red, green, blue);
            return System.Drawing.ColorTranslator.ToHtml(cl);
        }
0 0