Exemplo n.º 1
0
        public EuclideanQuantizer(IPaletteQuantizer quantizer, IDithering dithering)
        {
            if (quantizer == null)
                throw new Exception("param 'quantizer' cannot be null");

            mQuantizer  = quantizer;
            mDithering  = dithering;
        }
Exemplo n.º 2
0
        public EuclideanQuantizer(IPaletteQuantizer quantizer, IDithering dithering)
        {
            if (quantizer == null)
            {
                throw new Exception("param 'quantizer' cannot be null");
            }

            mQuantizer = quantizer;
            mDithering = dithering;
        }