Exemplo n.º 1
0
        public void load_gray(object sender, RoutedEventArgs e)
        {
            Stopwatch s = new Stopwatch();

            Thread.Sleep(10000);
            TimeSpan ts = s.Elapsed;

            s.Start();
            after.Source = img.ConvToBitmapImage(img.ToGrayByPixel(bmp));
            s.Stop();
            string elapsedTime = String.Format("Czas: {0} ms", s.Elapsed.TotalMilliseconds);


            timer.Text = elapsedTime;
        }
Exemplo n.º 2
0
 public void save_image(object sender, RoutedEventArgs e)
 {
     ImageProcessing.Grayscale img = new ImageProcessing.Grayscale();
     img.Save(img.ToGrayByPixel(bmp));
 }