private void HistogramyWyswietl(object sender, RoutedEventArgs e) { try { BitmapImage source = obrazek_2.Source as BitmapImage; System.Drawing.Bitmap b = BitmapImage2DBitmap(source); Histogramy histogramy = new Histogramy(this); histogramy.Show(b); } catch (Exception) { MessageBox.Show("Brak obrazka!", "Histogramy", MessageBoxButton.OK, MessageBoxImage.Warning); } }
public void AktualizacjaObrazek(System.Drawing.Bitmap image) { Histogramy histogramy = new Histogramy(this); obrazek.Source = ConvertBitmapImage(image); }