示例#1
0
文件: Form1.cs 项目: maoap1/grcis-1
        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);
        }
示例#2
0
文件: Form1.cs 项目: maoap1/grcis-1
        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();
        }