Ejemplo n.º 1
0
        public void Setup()
        {
            var serviceProvider = DependencyResolver.GetServices().BuildServiceProvider();

            encoder = serviceProvider.GetRequiredService <INearLosslessPredictiveEncoder>();
            decoder = serviceProvider.GetRequiredService <INearLosslessPredictiveDecoder>();

            filepathSource      = $"{Environment.CurrentDirectory}\\temp.bmp";
            filepathEncodedFile = $"{Environment.CurrentDirectory}\\temp.bmp.pre";
            filepathDecodedFile = $"{Environment.CurrentDirectory}\\temp.png.pre.bmp";
        }
Ejemplo n.º 2
0
        public NearLosslessPredictorUserControl()
        {
            InitializeComponent();
            InitializePredictorTypesRadioButtonsDictionary();
            InitializeSaveModesRadioButtonsDictionary();
            InitializeHistogramArea();

            var serviceProvider = DependencyResolver.GetServices().BuildServiceProvider();

            nearLosslessPredictiveEncoder = serviceProvider.GetRequiredService <INearLosslessPredictiveEncoder>();
            nearLosslessPredictiveDecoder = serviceProvider.GetRequiredService <INearLosslessPredictiveDecoder>();
        }