private void ShowPNGSample(object sender, EventArgs e)
        {
            var path = ((MenuItem)sender).Tag as string;

            var sw = new System.Diagnostics.Stopwatch();

            sw.Start();

            var filter = new NSynth.Imaging.PNG.PNGSourceFilter(path);

            filter.InitializeClip();
            this.host.Filter = filter;

            sw.Stop();
            this.Title = string.Format("NSynth Graph Studio -- Sample displayed in {0}ms", sw.ElapsedMilliseconds);
        }
Exemple #2
0
        private void ShowPNGSample(object sender, EventArgs e)
        {
            var path = ((MenuItem)sender).Tag as string;

            var sw = new System.Diagnostics.Stopwatch();
            sw.Start();

            var filter = new NSynth.Imaging.PNG.PNGSourceFilter(path);
            filter.InitializeClip();
            this.host.Filter = filter;

            sw.Stop();
            this.Title = string.Format("NSynth Graph Studio -- Sample displayed in {0}ms", sw.ElapsedMilliseconds);
        }