Esempio n. 1
0
        public void TestAddAlpha()
        {
            var x = _colour.AddAlpha();

            Assert.Equal(4, x.Bands);
            Assert.Equal(255, x[3].Avg());

            x = _colour.Copy(interpretation: Enums.Interpretation.Rgb16).AddAlpha();
            Assert.Equal(4, x.Bands);
            Assert.Equal(65535, x[3].Avg());
        }