コード例 #1
0
        public Color(string hexColor)
        {
            colorTransparencyResolver = new ColorTransparencyResolver();

            string redHex = hexColor.Substring(0, 2);
            string greenHex = hexColor.Substring(2, 2);
            string blueHex = hexColor.Substring(4);

            Red = HexDecimalConverter.ConvertHexToDecimal(redHex);
            Green = HexDecimalConverter.ConvertHexToDecimal(greenHex);
            Blue = HexDecimalConverter.ConvertHexToDecimal(blueHex);
        }
 public ColorTransparencyResolverTests()
 {
     colorTransparencyResolver = new ColorTransparencyResolver();
 }