コード例 #1
0
 private void ClickButtonSync()
 {
     try
     {
         ImageProcessing.ImageProcessing ip = new ImageProcessing.ImageProcessing();
         Stopwatch Timer = new Stopwatch();
         ip.ImageOpen(_OldImage);
         Timer.Start();
         ip.ToMainColors();
         Timer.Stop();
         TimeShow(Timer.ElapsedMilliseconds);
         LoadFromMemory(ip.bitMap);
     }
     catch (ArgumentNullException)
     {
         MessageBox.Show("You must load a image first");
     }
     catch
     {
         MessageBox.Show("There was a problem with render picture");
     }
 }