예제 #1
0
        public void Dither_index_rect_CorrectProcessor()
        {
            this.operations.Dither(this.orderedDither, this.TestPalette, this.rect);
            OrderedDitherPaletteProcessor <Rgba32> p = this.Verify <OrderedDitherPaletteProcessor <Rgba32> >(this.rect);

            Assert.Equal(this.orderedDither, p.Dither);
            Assert.Equal(this.TestPalette, p.Palette);
        }
예제 #2
0
        public void Dither_CorrectProcessor()
        {
            this.operations.Dither(this.orderedDither);
            OrderedDitherPaletteProcessor p = this.Verify <OrderedDitherPaletteProcessor>();

            Assert.Equal(this.orderedDither, p.Dither);
            Assert.Equal(Color.WebSafePalette, p.Palette);
        }
예제 #3
0
        public void Dither_rect_CorrectProcessor()
        {
            this.operations.Dither(this.orderedDither, this.rect);
            OrderedDitherPaletteProcessor <Rgba32> p = this.Verify <OrderedDitherPaletteProcessor <Rgba32> >(this.rect);

            Assert.Equal(this.orderedDither, p.Dither);
            Assert.Equal(NamedColors <Rgba32> .WebSafePalette, p.Palette);
        }
예제 #4
0
        public void Dither_index_CorrectProcessor()
        {
            this.operations.Dither(this.orderedDither, this.testPalette);
            OrderedDitherPaletteProcessor p = this.Verify <OrderedDitherPaletteProcessor>();

            Assert.Equal(this.orderedDither, p.Dither);
            Assert.Equal(this.testPalette, p.Palette);
        }