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