Ejemplo n.º 1
0
        public Form1()
        {
            InitializeComponent();

            string name;
            string param;

            ToneMapping.InitParams(out name, out param, out tooltip);
            textParam.Text = param ?? "";
            winTitle       = (Text += " (" + rev + ") '" + name + '\'');

            Application.Idle += new EventHandler(Application_Idle);
        }
Ejemplo n.º 2
0
        private void tonemap()
        {
            if (inputImage != null)
            {
                Stopwatch swt = new Stopwatch();
                swt.Start();

                Bitmap newImage = ToneMapping.ToneMap(inputImage, outputImage, textParam.Text);

                swt.Stop();
                SetText(string.Format(CultureInfo.InvariantCulture, "tonemap: {0} ms",
                                      swt.ElapsedMilliseconds));
                SetImage(newImage);
            }

            StopComputation();
        }