Exemplo n.º 1
0
 //--------------------------------------------------------------------------------------
 private void tsbColorSplit_Click(object sender, EventArgs e)
 {
     try
     {
         byte           lWhat          = (byte)cbClearColor.SelectedIndex;
         CImageSplitter lImageSplitter = new CImageSplitter();
         if (pbAfterClean_RL.Image != null)
         {
             Bitmap lNewBmp = CBlackWhiteExplorer.BWImageToColorImage(pbAfterClean_RL.Image as Bitmap, lWhat);
             pbAfterCleanColor.Image = lNewBmp;
         }
         if (pbAfterCleanExact_RL.Image != null)
         {
             Bitmap lNewBmp = CBlackWhiteExplorer.BWImageToColorImage(pbAfterCleanExact_RL.Image as Bitmap, lWhat);
             pbAfterCleanExactColor.Image = lNewBmp;
         }
         if (pbAfterCleanExactDefault_RL.Image != null)
         {
             Bitmap lNewBmp = CBlackWhiteExplorer.BWImageToColorImage(pbAfterCleanExactDefault_RL.Image as Bitmap, lWhat);
             pbAfterCleanExactDefaultColor.Image = lNewBmp;
         }
     }
     catch (Exception ee)
     {
         MessageBox.Show(ee.ToString());
     }
 }