Accord.Tests.Imaging.IntegralImage2Test.ImageFormatsTest C# (CSharp) Метод

ImageFormatsTest() приватный Метод

private ImageFormatsTest ( ) : void
Результат void
        public void ImageFormatsTest()
        {
            byte[,] img = 
            {
                { 5, 2, 3, 4, 1 },
                { 1, 5, 4, 2, 3 },
                { 2, 2, 1, 3, 4 },
                { 3, 5, 6, 4, 5 },
                { 4, 1, 3, 2, 6 },
            };



            long[,] actual8bpp = create(img, PixelFormat.Format8bppIndexed);
            long[,] actual24rgb = create(img, PixelFormat.Format24bppRgb);
            long[,] actual32rgb = create(img, PixelFormat.Format32bppRgb);
            long[,] actual32argb = create(img, PixelFormat.Format32bppArgb);

            Assert.IsTrue(actual8bpp.IsEqual(actual24rgb));
            Assert.IsTrue(actual8bpp.IsEqual(actual32rgb));
            Assert.IsTrue(actual8bpp.IsEqual(actual32argb));
        }