示例#1
0
 public bool Equals(HunterLab other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(other.L == L && other.A == A && other.B == B);
 }
示例#2
0
            public void GoldenrodRgbToHunterLab()
            {
                var knownColor = new Rgb { R = 218, G = 165, B = 32, };
                var expectedColor = new HunterLab { L = 64.746, A = 4.222, B = 38.719, };

                ExpectedValuesForKnownColor(knownColor,expectedColor);
            }
示例#3
0
            public void BlackRgbToHunterLab()
            {
                var knownColor = new Rgb { R = 0, G = 0, B = 0, };
                var expectedColor = new HunterLab { L = 0, A = 0, B = 0, };

                ExpectedValuesForKnownColor(knownColor,expectedColor);
            }
示例#4
0
            public void BabyBlueHunterLabToXyz()
            {
                var knownColor = new HunterLab { L = 85.308, A = -27.915, B = -13.675, };
                var expectedColor = new Xyz { X = 58.007, Y = 72.775, Z = 105.596, };

                ExpectedValuesForKnownColor(knownColor,expectedColor);
            }
示例#5
0
            public void BabyBlueHunterLabToRgb()
            {
                var knownColor = new HunterLab { L = 85.308, A = -27.915, B = -13.675, };
                var expectedColor = new Rgb { R = 133, G = 237, B = 255, };

                ExpectedValuesForKnownColor(knownColor,expectedColor);
            }
示例#6
0
            public void WhiteRgbToHunterLab()
            {
                var knownColor = new Rgb { R = 255, G = 255, B = 255, };
                var expectedColor = new HunterLab { L = 100, A = -5.336, B = 5.433, };

                ExpectedValuesForKnownColor(knownColor,expectedColor);
            }