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); }
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(); }