Esempio n. 1
0
File: Main.cs Progetto: exhu/alimg
        static void reduce(String src, String dst)
        {
            BufImg img = new BufImg();
            img.load(src);

            PixelDither dither = new PixelDither();
            ColorReducer reducer = new ColorReducer(ColorReducer.PixelFormat.pf4444);

            for(int i = 0; i < 100; ++i)
                dither.ditherImage(img, reducer);

            img.save(dst);
        }
Esempio n. 2
0
File: Main.cs Progetto: exhu/alimg
        static void reduce(String src, String dst)
        {
            BufImg img = new BufImg();

            img.load(src);

            PixelDither  dither  = new PixelDither();
            ColorReducer reducer = new ColorReducer(ColorReducer.PixelFormat.pf4444);

            for (int i = 0; i < 100; ++i)
            {
                dither.ditherImage(img, reducer);
            }

            img.save(dst);
        }