예제 #1
0
        public static string ToHexString(this IColor color)
        {
            var result = new StringBuilder();

            result.Append("#");

            foreach (var colorByte in color.Colors())
            {
                result.AppendFormat("{0:X2}", colorByte);
            }

            return(result.ToString());
        }