//-------------------------------------------------------------------------------------- private void tsbByRed_Click(object sender, EventArgs e) { try { Bitmap lInBmp = pbSource.Image as Bitmap; if (lInBmp == null) { MessageBox.Show("Нет картинки"); return; } Bitmap lBmp = fBlackWhiteExplorer.PictureToBlackWhite(lInBmp, 1); pbBlackWhite.Image = lBmp; } catch (Exception ee) { MessageBox.Show(ee.ToString()); } }