コード例 #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();
        }